Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

Dockerfile 435 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  1. # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
  2. # you will also find guides on how best to write your Dockerfile
  3. FROM node:19
  4. RUN npm install -g pm2
  5. WORKDIR /app
  6. COPY . .
  7. RUN npm i
  8. RUN chown -R 1000:1000 /app
  9. RUN --mount=type=secret,id=DOTENV_LOCAL,mode=0444,required=true cat /run/secrets/DOTENV_LOCAL > .env.local
  10. RUN npm run build
  11. ENV PORT 7860
  12. CMD pm2 start build/index.js -i $CPU_CORES --no-daemon
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...