Spaces:
Sleeping
Sleeping
# Use an official Node.js runtime as a parent image | |
FROM node:18-slim | |
# Set the working directory in the container | |
WORKDIR /app | |
# Copy package.json and package-lock.json (if available) | |
COPY package*.json ./ | |
# Install app dependencies | |
RUN npm install --production | |
# Copy the rest of the application's source code | |
COPY . . | |
# Your app binds to port 7860 | |
EXPOSE 7860 | |
# Define the command to run your app | |
CMD ["npm", "start"] |