File size: 405 Bytes
356ce10
 
 
 
 
6671664
356ce10
 
 
 
 
62cfd2a
98af244
c8d90f4
 
356ce10
dc0d663
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
# you will also find guides on how best to write your Dockerfile

FROM node:19

WORKDIR /app

COPY . .

RUN npm i

RUN chown -R 1000:1000 /app

RUN --mount=type=secret,id=PUBLIC_MODEL_ENDPOINT,mode=0444,required=true \
   PUBLIC_MODEL_ENDPOINT=$(cat /run/secrets/PUBLIC_MODEL_ENDPOINT) npm run build

ENV PORT 7860

CMD ["node", "build"]