File size: 346 Bytes
b22ca5d
fe9b24f
b22ca5d
fe9b24f
 
b22ca5d
 
 
64fa001
b22ca5d
fe9b24f
 
b22ca5d
2b4fdbc
fe9b24f
b22ca5d
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM node:18-slim

# Create app directory
WORKDIR /app

# Install dependencies
COPY package.json package-lock.json* ./
RUN npm ci --omit=dev || npm install --omit=dev

# Bundle app source
COPY . .

# Hugging Face Spaces expect the app to listen on $PORT
ENV PORT=7860

# Expose the port (for documentation only)
EXPOSE 7860

CMD ["npm", "start"]