Frontend/backend project structure
+ Base implementation of a differential synchronization based on Neil Fraser article/talk See https://www.youtube.com/watch?v=S2Hp_1jqpY8
This commit is contained in:
11
Dockerfile
11
Dockerfile
@ -5,18 +5,19 @@ RUN apk add --no-cache nodejs npm git make
|
||||
COPY . /src
|
||||
WORKDIR /src
|
||||
|
||||
RUN npm install && make build
|
||||
RUN make install-deps \
|
||||
&& make build
|
||||
|
||||
FROM alpine:3.11
|
||||
|
||||
COPY --from=build /src/dist /app
|
||||
COPY --from=build /src/client/dist /client
|
||||
|
||||
WORKDIR /app
|
||||
WORKDIR /client
|
||||
|
||||
RUN apk add --no-cache caddy
|
||||
|
||||
COPY misc/dokku/Caddyfile /app/Caddyfile
|
||||
COPY misc/dokku/CHECKS /app/CHECKS
|
||||
COPY misc/dokku/Caddyfile /client/Caddyfile
|
||||
COPY misc/dokku/CHECKS /client/CHECKS
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
|
Reference in New Issue
Block a user