guesstimate/Dockerfile
William Petit d9fb51394c 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
2020-04-27 22:43:42 +02:00

24 lines
356 B
Docker

FROM alpine:3.11 AS build
RUN apk add --no-cache nodejs npm git make
COPY . /src
WORKDIR /src
RUN make install-deps \
&& make build
FROM alpine:3.11
COPY --from=build /src/client/dist /client
WORKDIR /client
RUN apk add --no-cache caddy
COPY misc/dokku/Caddyfile /client/Caddyfile
COPY misc/dokku/CHECKS /client/CHECKS
EXPOSE 80
CMD ["caddy"]