haydpw commited on
Commit
319dbdb
·
1 Parent(s): c46a636

change dockerfile part #6

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -1,15 +1,18 @@
1
  FROM python:3.9.4
2
 
 
 
 
 
3
  RUN useradd -m -u 1000 haydpw
4
  USER haydpw
5
  ENV PATH="/home/haydpw/.local/bin:$PATH"
6
 
 
7
  COPY --chown=user . .
8
 
9
  WORKDIR /
10
 
11
- RUN apt-get install -y libgl1-mesa-glx
12
-
13
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
 
15
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.9.4
2
 
3
+ USER root
4
+
5
+ RUN apt-get update && apt-get install -y libgl1-mesa-glx
6
+
7
  RUN useradd -m -u 1000 haydpw
8
  USER haydpw
9
  ENV PATH="/home/haydpw/.local/bin:$PATH"
10
 
11
+
12
  COPY --chown=user . .
13
 
14
  WORKDIR /
15
 
 
 
16
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
17
 
18
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]