CreatBotMainsail/Dockerfile
2022-03-02 22:47:27 +01:00

24 lines
407 B
Docker

#
# Builder stage, builds the application in node
#
FROM node:16-alpine as builder
RUN apk add zip
WORKDIR /app
COPY package*.json /app/
RUN npm install
COPY ./ /app/
RUN npm run build
#
# Runner stage, runs the application in nginx
#
FROM nginx:stable-alpine as runner
COPY --from=builder /app/.docker/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /app/dist/ /usr/share/nginx/html/