ospfcost/Dockerfile
2025-07-09 21:36:14 +02:00

25 lines
327 B
Docker

# Use official Node.js image
FROM node:20
# Create app directory
WORKDIR /app
# Copy dependency files
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy rest of the app
COPY . .
# Build the Next.js app
RUN npm run build
# Expose default Next.js port
EXPOSE 3000
# Start the server
CMD ["npm", "start"]