Spaces:
Sleeping
Sleeping
File size: 455 Bytes
c0fb352 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # Use the official lightweight Node.js image
FROM node:22-alpine
# Set the working directory inside the container
WORKDIR /app
# Copy package files and install dependencies
COPY package*.json ./
RUN npm install
# Copy the rest of the application code
COPY . .
# Hugging Face Spaces expose port 7860 by default
EXPOSE 7860
# Set the PORT environment variable for our server.js to pick up
ENV PORT=7860
# Command to start the app
CMD ["npm", "start"]
|