Spaces:
Running
Running
Huy Nguyen
commited on
Commit
·
a6fe32c
1
Parent(s):
e31bb8a
fix permission error
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
FROM python:3.10
|
2 |
|
|
|
|
|
3 |
RUN useradd -m -u 1000 user
|
4 |
|
5 |
USER user
|
@@ -9,8 +11,6 @@ ENV HOME=/home/user \
|
|
9 |
|
10 |
WORKDIR $HOME/app
|
11 |
|
12 |
-
RUN apt-get update && apt-get install -y libgl1-mesa-glx libxext6
|
13 |
-
|
14 |
COPY --chown=user ./requirements.txt $HOME/app/requirements.txt
|
15 |
|
16 |
RUN pip install --no-cache-dir --upgrade -r $HOME/app/requirements.txt
|
|
|
1 |
FROM python:3.10
|
2 |
|
3 |
+
RUN apt-get update && apt-get install -y libgl1-mesa-glx libxext6
|
4 |
+
|
5 |
RUN useradd -m -u 1000 user
|
6 |
|
7 |
USER user
|
|
|
11 |
|
12 |
WORKDIR $HOME/app
|
13 |
|
|
|
|
|
14 |
COPY --chown=user ./requirements.txt $HOME/app/requirements.txt
|
15 |
|
16 |
RUN pip install --no-cache-dir --upgrade -r $HOME/app/requirements.txt
|