Reality123b commited on
Commit
e4aa580
·
verified ·
1 Parent(s): 46fd051

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -31,9 +31,7 @@ RUN apt-get update && \
31
  && rm -rf /var/lib/apt/lists/*
32
 
33
  # Install text-generation-inference from source for CPU optimization
34
- RUN git clone https://github.com/huggingface/text-generation-inference.git /app/text-generation-inference
35
- WORKDIR /app/text-generation-inference
36
- RUN pip3 install --no-cache-dir .
37
 
38
  # mongo installation
39
  RUN curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | \
@@ -61,6 +59,10 @@ RUN chown -R 1000:1000 /app
61
  RUN mkdir /data
62
  RUN chown -R 1000:1000 /data
63
 
 
 
 
 
64
  # Switch to the "user" user
65
  USER user
66
 
 
31
  && rm -rf /var/lib/apt/lists/*
32
 
33
  # Install text-generation-inference from source for CPU optimization
34
+ RUN git clone https://github.com/huggingface/text-generation-inference.git /app/text-generation-inference
 
 
35
 
36
  # mongo installation
37
  RUN curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | \
 
59
  RUN mkdir /data
60
  RUN chown -R 1000:1000 /data
61
 
62
+ # Install text-generation-inference from source for CPU optimization
63
+ WORKDIR /app/text-generation-inference
64
+ RUN pip3 install --no-cache-dir .
65
+
66
  # Switch to the "user" user
67
  USER user
68