jbilcke-hf HF staff commited on
Commit
301d71a
1 Parent(s): 5535b95

trying something

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -14
Dockerfile CHANGED
@@ -34,20 +34,6 @@ RUN git lfs install
34
 
35
  RUN python3 -m pip install --no-cache-dir --upgrade pip
36
 
37
- RUN useradd -m -u 1000 user
38
- USER user
39
- ENV HOME=/home/user \
40
- PATH=/home/user/.local/bin:$PATH
41
-
42
- WORKDIR $HOME/app
43
-
44
- # prepare to install the Node app
45
- COPY --chown=user package*.json .
46
-
47
- RUN pnpm --version
48
-
49
- RUN pnpm install
50
-
51
  WORKDIR /tmp
52
 
53
  # ok! let's try to compile llama-node
@@ -70,8 +56,20 @@ RUN pnpm build:cuda
70
 
71
  ENV LD_LIBRARY_PATH $LD_LIBRARY_PATH:$HOME/.llama-node
72
 
 
 
 
 
 
73
  WORKDIR $HOME/app
74
 
 
 
 
 
 
 
 
75
  # ok.. should be good?
76
 
77
  COPY --chown=user . .
 
34
 
35
  RUN python3 -m pip install --no-cache-dir --upgrade pip
36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  WORKDIR /tmp
38
 
39
  # ok! let's try to compile llama-node
 
56
 
57
  ENV LD_LIBRARY_PATH $LD_LIBRARY_PATH:$HOME/.llama-node
58
 
59
+ RUN useradd -m -u 1000 user
60
+ USER user
61
+ ENV HOME=/home/user \
62
+ PATH=/home/user/.local/bin:$PATH
63
+
64
  WORKDIR $HOME/app
65
 
66
+ # prepare to install the Node app
67
+ COPY --chown=user package*.json .
68
+
69
+ RUN pnpm --version
70
+
71
+ RUN npm install
72
+
73
  # ok.. should be good?
74
 
75
  COPY --chown=user . .