Spaces:
Running
Running
File size: 488 Bytes
c547da1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# Use an official Node.js runtime as the base image
FROM node:18-alpine
# Set the working directory in the container
WORKDIR /app
# Copy package.json and package-lock.json to the working directory
COPY package*.json ./
# Install project dependencies
RUN npm install
# Copy all source files to the working directory
COPY . .
# Build the Next.js application
RUN npm run build
# Expose the port your app runs on
EXPOSE 7860
# Define the command to run your app
CMD [ "npm", "start" ]
|