asherfalcon.com/dockerfile
2025-02-22 17:50:04 +00:00

23 lines
341 B
Plaintext

FROM node:18-alpine
# Set working directory
WORKDIR /app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN npm install --production
# Copy application files
COPY . .
# Build the Next.js app
RUN npm run build
# Expose the necessary port
EXPOSE 3000
# Start the application
CMD ["npm", "start"]