Spaces:
Running
Running
File size: 387 Bytes
a64ea04 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# Use an official Node.js runtime as a parent image
FROM node:18
# Set the working directory in the container
WORKDIR /app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN yarn install
# Copy the rest of the application files
COPY . .
# Expose the port the app runs on
EXPOSE 7860
# Command to run the application
CMD ["node", "server.js"] |