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:
2020-04-27 22:43:42 +02:00
parent 40759f59d6
commit d9fb51394c
89 changed files with 2178 additions and 14 deletions

View File

@ -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