Sign in

Administrator / spring-boot-microservices-onlineshooping-fullstack · Files

Logo

GitLab

  • Back to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • spring-boot-microservices-onlineshooping-fullstack
  • frontend
  • Dockerfile
  • Added the Jenkinsfile
    7dd37a38
    Administrator authored
    2025-10-24 14:55:50 +0800  
    Browse Code ยป
Dockerfile 292 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
# Build stage
FROM node:18-alpine as build

WORKDIR /app

COPY package*.json ./
RUN npm ci

COPY . .
RUN npm run build

# Production stage
FROM nginx:alpine

COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/nginx.conf

EXPOSE 80

CMD ["nginx", "-g", "daemon off;"]