File size: 435 Bytes
63f63db
 
 
 
 
eb71e1f
 
324dc9f
63f63db
 
 
 
 
b97d2f0
fcc70f3
a23680a
 
 
63f63db
adcdf7c
 
7d9aceb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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

RUN npm install -g pm2

WORKDIR /app

COPY . .

RUN npm i

RUN chown -R 1000:1000 /app

RUN --mount=type=secret,id=DOTENV_LOCAL,mode=0444,required=true cat /run/secrets/DOTENV_LOCAL > .env.local
   
RUN npm run build

ENV PORT 7860

CMD pm2 start build/index.js -i $CPU_CORES --no-daemon