Files
webclone-nextjs-template/Dockerfile.agent.example
2026-02-19 12:10:51 -08:00

17 lines
266 B
Docker

FROM node:20-slim
WORKDIR /app
# Install dependencies first (for better caching)
COPY package*.json ./
RUN npm install
# Copy application files
COPY . .
# Expose Next.js dev port
EXPOSE 3000
# Start Next.js in dev mode with hot reload
CMD ["npm", "run", "dev"]