feat(docker): added multi stage dockerfile #4

Merged
servostar merged 1 commits from feat/docker-image into main 2024-10-24 22:35:20 +00:00
1 changed files with 11 additions and 0 deletions
Showing only changes of commit 2e3c69b550 - Show all commits

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM node:20 AS builder
COPY . /brunsviga
WORKDIR /brunsviga
RUN npm ci
RUN npm run build
FROM nginx:mainline-alpine3.20-slim as runtime
COPY --from=builder /brunsviga/dist /usr/share/nginx/html/