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 351 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
  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 --link --chown=1000 . .
  7. RUN npm i
  8. RUN --mount=type=secret,id=DOTENV_LOCAL,dst=.env.local npm run build
  9. 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...