Compare commits

...

2 Commits

Author SHA1 Message Date
Sven Vogel 67902044ca Merge pull request 'feat(docker): added multi stage dockerfile' (#4) from feat/docker-image into main
Gitea Vite Build Action / Vite-Build (push) Successful in 42s Details
Reviewed-on: #4
2024-10-24 22:35:18 +00:00
Sven Vogel 2e3c69b550 feat(docker): added multi stage dockerfile
Gitea Vite Build Action / Vite-Build (push) Successful in 41s Details
2024-10-25 00:34:53 +02:00
1 changed files with 11 additions and 0 deletions

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/