Files
testvue/Dockerfile
Carmine Savino ef5904f430
All checks were successful
GKE Auto-Deploy / build-and-deploy (push) Successful in 34s
test dockerfile
2026-01-28 18:34:15 +01:00

14 lines
326 B
Docker

# Stage 1: Build Node
FROM node:lts-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# Stage 2: Nginx Serve
FROM nginx:stable-alpine as production-stage
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=build-stage /app/dist /app
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]