Files
3engines/Dockerfile
mukesh13 dcdddc0c06 Docker
2025-06-25 21:03:54 +05:30

24 lines
348 B
Docker

# Use the official Node.js 20 image
FROM node:20
# Set working directory
WORKDIR /app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy the entire app
COPY . .
# Run Next.js build
RUN npm run build
# Expose the port the app runs on
EXPOSE 3000
# Start the app
CMD ["npm", "start"]