-
-
Save Vikash-8090-Yadav/9fa89073c340ffc6e6b01417b2424da1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use an official Node.js runtime as a parent image | |
FROM node:14 | |
# Set the working directory to /app | |
WORKDIR /app | |
# Copy package.json and package-lock.json to the container | |
COPY package*.json ./ | |
# Install dependencies | |
RUN npm install | |
# Copy the rest of the application code to the container | |
COPY . . | |
# Build the Next.js application | |
RUN npm run build | |
# Expose port 3000 | |
EXPOSE 3000 | |
# Start the application | |
CMD ["npm", "run" ,"dev"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment