This commit is contained in:
mukesh13
2025-06-25 21:03:54 +05:30
parent 24c8a734d4
commit dcdddc0c06
2 changed files with 11 additions and 11 deletions

View File

@ -1,23 +1,23 @@
# Use the official Node.js 20 image as the base
# 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 and package-lock.json
COPY package*.json ./
# Install dependencies with verbose output
RUN npm install --verbose
# Install dependencies
RUN npm install
# Copy the rest of the application code
# Copy the entire app
COPY . .
# Build the Next.js application with debug output
RUN npm run build -- --debug
# Run Next.js build
RUN npm run build
# Expose port 3000
# Expose the port the app runs on
EXPOSE 3000
# Start the application
CMD ["npm", "start"]
# Start the app
CMD ["npm", "start"]