Spaces:
Sleeping
Sleeping
File size: 476 Bytes
26240b0 0123ef3 26240b0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# Use an official Node.js runtime as the base image
FROM node:14
# Set the working directory in the container
WORKDIR /usr/src/app
# Copy package.json and package-lock.json to the working directory
COPY package*.json ./
# Install the application dependencies
RUN npm install
# Copy the rest of the application code to the working directory
COPY . .
# Expose the port that the app runs on
EXPOSE 7860
# Define the command to run the application
CMD ["node", "server.js"]
|