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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -5
Dockerfile CHANGED
@@ -31,7 +31,15 @@ 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
 
36
  # mongo installation
37
  RUN curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | \
@@ -59,10 +67,6 @@ RUN chown -R 1000:1000 /app
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
 
 
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
+ # Install gnupg to use gpg command
39
+ RUN apt-get update && \
40
+ apt-get install -y --no-install-recommends \
41
+ gnupg && \
42
+ rm -rf /var/lib/apt/lists/*
43
 
44
  # mongo installation
45
  RUN curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | \
 
67
  RUN mkdir /data
68
  RUN chown -R 1000:1000 /data
69
 
 
 
 
 
70
  # Switch to the "user" user
71
  USER user
72