Spaces:
Configuration error
Configuration error
File size: 463 Bytes
8db5596 c132e32 8db5596 c132e32 8db5596 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# Use Node.js version 18 as the base image
FROM node:18.17.0
# Set the working directory in the container
WORKDIR /app
# Copy package.json and package-lock.json (or yarn.lock) to the working directory
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy the rest of your application code
COPY . .
# Build your Next.js application
RUN npm run build
# Expose the port your app runs on
EXPOSE 3000
# Command to run your app
CMD ["npm", "start"] |