jbilcke-hf HF staff commited on
Commit
7442c38
·
1 Parent(s): a168947

let's use PNPM

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -6
Dockerfile CHANGED
@@ -18,6 +18,9 @@ RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
18
 
19
  RUN apt --yes install nodejs
20
 
 
 
 
21
  RUN apt --yes install git git-lfs libsndfile1-dev tesseract-ocr espeak-ng python3 python3-pip ffmpeg
22
 
23
  RUN git lfs install
@@ -34,18 +37,14 @@ WORKDIR $HOME/app
34
  # prepare to install the Node app
35
  COPY --chown=user package*.json .
36
 
37
- RUN npm install
38
 
39
 
40
  # OK, now the hell begins.. we need to build llama-node with CUDA support
41
 
42
-
43
  # we need Rust
44
  RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y
45
 
46
- # need PNPM
47
- RUN npm install -g pnpm
48
-
49
  # we need PNP
50
  # RUN curl -fsSL https://get.pnpm.io/install.sh | bash -
51
 
@@ -75,4 +74,4 @@ ADD --chown=user https://huggingface.co/TheBloke/airoboros-13b-gpt4-GGML/resolve
75
 
76
  RUN python3 test.py
77
 
78
- CMD [ "npm", "run", "start" ]
 
18
 
19
  RUN apt --yes install nodejs
20
 
21
+ RUN corepack enable
22
+ RUN corepack prepare pnpm --activate
23
+
24
  RUN apt --yes install git git-lfs libsndfile1-dev tesseract-ocr espeak-ng python3 python3-pip ffmpeg
25
 
26
  RUN git lfs install
 
37
  # prepare to install the Node app
38
  COPY --chown=user package*.json .
39
 
40
+ RUN pnpm install
41
 
42
 
43
  # OK, now the hell begins.. we need to build llama-node with CUDA support
44
 
 
45
  # we need Rust
46
  RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y
47
 
 
 
 
48
  # we need PNP
49
  # RUN curl -fsSL https://get.pnpm.io/install.sh | bash -
50
 
 
74
 
75
  RUN python3 test.py
76
 
77
+ CMD [ "pnpm", "run", "start" ]