# Use Node.js base image for build stage FROM node:alpine AS build # Set working directory WORKDIR /app # Copy the rest of the application code COPY . . # Install dependencies using Yarn RUN npm i # Expose port 80 EXPOSE 3000 # Start Nginx server CMD ["npm", "start"]