Spaces:
Sleeping
Sleeping
File size: 418 Bytes
b6a2775 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# Use the official Node.js LTS image
FROM node:18
# Set working directory
WORKDIR /app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy the rest of the server code
COPY . .
# Expose the port (Hugging Face expects 7860 by default, but you can set it)
EXPOSE 7860
# Start the server, binding to 0.0.0.0 and port 7860
ENV PORT=7860
CMD [ "npm", "start" ] |