File size: 353 Bytes
2070fe3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Use Node 18
FROM node:18

# Set working directory
WORKDIR /app

# Copy everything (safe)
COPY . .

# If your code is in a 'backend' subfolder, uncomment this:
WORKDIR /app/backend

# Install dependencies (make sure package.json is in the right place)
RUN npm install

# Expose HF's required port
EXPOSE 7860

# Run the server
CMD ["node", "server.js"]