CreatBotMainsail/Dockerfile
Stefan Dej caaca54019
build(docker): fix docker release tags (#1723)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2023-12-30 23:01:29 +01:00

24 lines
428 B
Docker

#
# Builder stage, builds the application in node
#
FROM --platform=$BUILDPLATFORM node:20-alpine as builder
RUN apk add zip
WORKDIR /app
COPY package*.json /app/
RUN npm ci
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/