All checks were successful
GKE Auto-Deploy / build-and-deploy (push) Successful in 34s
14 lines
326 B
Docker
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;"] |