keyoxide-web/Dockerfile
2023-08-25 15:53:42 +02:00

22 lines
No EOL
403 B
Docker

FROM node:16-alpine as builder
WORKDIR /app
COPY . .
RUN yarn --pure-lockfile
RUN yarn run build
###
FROM node:16-alpine
WORKDIR /app
COPY --from=builder /app/package.json ./package.json
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/content ./content
COPY --from=builder /app/views ./views
COPY --from=builder /app/static ./static
EXPOSE 3000
CMD node --experimental-fetch ./dist/