File size: 415 Bytes
9f6525e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Use a standard Node.js environment
FROM node:18

# Create a place for your code
WORKDIR /app

# Install dependencies first (better for caching)
COPY package*.json ./
RUN npm install

# Copy all your project files
COPY . .

# Hugging Face usually expects port 7860 by default, 
# but since your project likely uses 8000, we ensure it matches.
ENV PORT=8000
EXPOSE 8000

# Start the application
CMD ["npm", "start"]