File size: 411 Bytes
356ce10
 
 
 
 
000ed50
 
6671664
356ce10
ff2db2e
356ce10
 
 
ff2db2e
 
f177e4b
dc0d663
54540f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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 --link --chown=1000 package.json package-lock.json ./

RUN npm i

COPY --link --chown=1000 . .

RUN --mount=type=secret,id=DOTENV_LOCAL,dst=.env.local npm run build

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