guesstimate/Dockerfile

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"]