1
0
forked from jchomaz/Vulture

(feat) VContainers : build VApp

This commit is contained in:
2025-11-16 18:54:38 +01:00
parent bc807f9c7b
commit 768f42dff4
2 changed files with 42 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#FROM docker.io/nginx:stable-alpine
FROM docker.io/node:lts-alpine AS builder
## Bundle APP files
WORKDIR /app
COPY VApp ./
RUN npm install
RUN npm run build
FROM docker.io/nginx:stable-alpine
RUN rm /etc/nginx/conf.d/default.conf
COPY ./VContainers/VApp/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 80
# CMD ["npm","run","dev"]
#CMD ["sleep", "1000"]