CreatBotMainsail/Dockerfile
pataar 666c942b18
chore(deps): update dependencies (#1103)
Co-authored-by: pieter <pieter@interactivestudios.nl>
2022-10-05 23:19:11 +02:00

24 lines
433 B
Docker

#
# Builder stage, builds the application in node
#
FROM --platform=$BUILDPLATFORM node:18-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/