forked from jchomaz/Vulture
feat: Refactor VApp container to a development build and update its exposed port mapping in the run script.
This commit is contained in:
@@ -1,18 +1,16 @@
|
||||
#FROM docker.io/nginx:stable-alpine
|
||||
FROM docker.io/node:lts-alpine AS builder
|
||||
## Bundle APP files
|
||||
# Development Container for VApp
|
||||
FROM docker.io/node:lts-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy VApp source code
|
||||
COPY VApp ./
|
||||
|
||||
# Install dependencies
|
||||
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 Vite default port
|
||||
EXPOSE 5173
|
||||
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
# CMD ["npm","run","dev"]
|
||||
#CMD ["sleep", "1000"]
|
||||
# Start in development mode with host exposure
|
||||
CMD ["npm", "run", "dev", "--", "--host"]
|
||||
Reference in New Issue
Block a user