Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
|
|
|
|
|
| 1 |
# Set up a new user named "user" with user ID 1000
|
| 2 |
RUN useradd -m -u 1000 user
|
| 3 |
|
|
@@ -11,8 +13,6 @@ ENV HOME=/home/user \
|
|
| 11 |
# Set the working directory to the user's home directory
|
| 12 |
WORKDIR $HOME/app
|
| 13 |
|
| 14 |
-
FROM python:3.13.5-slim
|
| 15 |
-
|
| 16 |
# Try and run pip command after setting the user with `USER user` to avoid permission issues with Python
|
| 17 |
RUN pip install --no-cache-dir --upgrade pip
|
| 18 |
|
|
|
|
| 1 |
+
FROM python:3.13.5-slim
|
| 2 |
+
|
| 3 |
# Set up a new user named "user" with user ID 1000
|
| 4 |
RUN useradd -m -u 1000 user
|
| 5 |
|
|
|
|
| 13 |
# Set the working directory to the user's home directory
|
| 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 pip install --no-cache-dir --upgrade pip
|
| 18 |
|