Spaces:
Sleeping
Sleeping
File size: 401 Bytes
73b13c8 025b23d 73b13c8 071c6d6 73b13c8 071c6d6 |
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 a parent image
FROM node:14
# Set the working directory
WORKDIR /usr/src/app
# Copy package.json
COPY package.json ./
# Clear npm cache and install dependencies
RUN npm cache clean --force
RUN npm install
# Copy the rest of the application code
COPY . .
# Expose the port the app runs on
EXPOSE 7860
# Define the command to run the app
CMD ["node", "app.js"] |