Dockerfile 273 B

1234567891011121314151617
  1. # Use Node.js base image for build stage
  2. FROM node:alpine AS build
  3. # Set working directory
  4. WORKDIR /app
  5. # Copy the rest of the application code
  6. COPY . .
  7. # Install dependencies using Yarn
  8. RUN npm i
  9. # Expose port 80
  10. EXPOSE 3000
  11. # Start Nginx server
  12. CMD ["npm", "start"]