File size: 386 Bytes
3c44eff
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Dockerfile
FROM node:20-slim

WORKDIR /app
COPY package*.json ./
RUN npm ci --omit=dev

COPY . .

# Make sure your app listens on 0.0.0.0 and this PORT
ENV PORT=7860
EXPOSE 7860

# These envs will be set in the Space UI (Settings → Variables & secrets)
# ENV MODEL_URL_MODEL=...
# ENV MODEL_URL_TOKENIZER=...
# ENV MODEL_LOAD_MODE=memory
# ENV MAX_TOKENS=84

CMD ["node", "app.js"]