Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
# Utilise une image Python officielle comme base
|
| 2 |
-
FROM python:3.11-slim-buster
|
|
|
|
| 3 |
|
| 4 |
RUN useradd -m -u 1000 user
|
| 5 |
USER user
|
|
@@ -9,7 +10,8 @@ WORKDIR $HOME/app
|
|
| 9 |
COPY --chown=user . $HOME/app
|
| 10 |
COPY ./requirements.txt ~/app/requirements.txt
|
| 11 |
|
| 12 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 13 |
|
| 14 |
# Copie le reste de l'application
|
| 15 |
COPY . .
|
|
|
|
| 1 |
# Utilise une image Python officielle comme base
|
| 2 |
+
#FROM python:3.11-slim-buster
|
| 3 |
+
FROM python:3.11
|
| 4 |
|
| 5 |
RUN useradd -m -u 1000 user
|
| 6 |
USER user
|
|
|
|
| 10 |
COPY --chown=user . $HOME/app
|
| 11 |
COPY ./requirements.txt ~/app/requirements.txt
|
| 12 |
|
| 13 |
+
#RUN pip install --no-cache-dir -r requirements.txt
|
| 14 |
+
RUN pip install -r requirements.txt
|
| 15 |
|
| 16 |
# Copie le reste de l'application
|
| 17 |
COPY . .
|