Spaces:
Running
Running
Commit
·
1867359
1
Parent(s):
2fd1c43
Modify order
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
|
@@ -1,5 +1,7 @@
|
|
| 1 |
FROM python:3.11
|
| 2 |
|
|
|
|
|
|
|
| 3 |
# Set up a new user named "user" with user ID 1000
|
| 4 |
RUN useradd -m -u 1000 user
|
| 5 |
|
|
@@ -14,7 +16,6 @@ ENV HOME=/home/user \
|
|
| 14 |
WORKDIR $HOME/app
|
| 15 |
|
| 16 |
# Try and run pip command after setting the user with `USER user` to avoid permission issues with Python
|
| 17 |
-
RUN apt-get update
|
| 18 |
|
| 19 |
RUN pip install --no-cache-dir --upgrade pip
|
| 20 |
|
|
|
|
| 1 |
FROM python:3.11
|
| 2 |
|
| 3 |
+
RUN apt-get update
|
| 4 |
+
|
| 5 |
# Set up a new user named "user" with user ID 1000
|
| 6 |
RUN useradd -m -u 1000 user
|
| 7 |
|
|
|
|
| 16 |
WORKDIR $HOME/app
|
| 17 |
|
| 18 |
# Try and run pip command after setting the user with `USER user` to avoid permission issues with Python
|
|
|
|
| 19 |
|
| 20 |
RUN pip install --no-cache-dir --upgrade pip
|
| 21 |
|