Fix production build

This commit is contained in:
2020-04-20 12:24:17 +02:00
parent 0a98e32a83
commit 8698dec2bf
16 changed files with 588 additions and 1190 deletions

22
Dockerfile Normal file
View File

@ -0,0 +1,22 @@
FROM alpine:3.11 AS build
COPY . /src
WORKDIR /src
RUN apk add --no-cache nodejs npm git
RUN npm install && npm run build
FROM alpine:3.11
COPY --from=build /src/build /app
WORKDIR /app
RUN apk add --no-cache caddy
COPY misc/dokku/Caddyfile /app/Caddyfile
COPY misc/dokku/CHECKS /app/CHECKS
EXPOSE 80
CMD ["caddy"]