Spaces:
Runtime error
Runtime error
Ziad Meligy commited on
Commit ·
e663273
1
Parent(s): 3465632
Fixing last bug yarab
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -1,12 +1,13 @@
|
|
| 1 |
FROM python:3.11.4-slim
|
| 2 |
|
| 3 |
-
RUN
|
|
|
|
|
|
|
| 4 |
USER user
|
| 5 |
ENV PATH="/home/user/.local/bin:$PATH"
|
| 6 |
|
| 7 |
WORKDIR /app
|
| 8 |
|
| 9 |
-
RUN apt-get update && apt-get install -y git
|
| 10 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 11 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 12 |
|
|
|
|
| 1 |
FROM python:3.11.4-slim
|
| 2 |
|
| 3 |
+
RUN apt-get update && apt-get install -y git && \
|
| 4 |
+
useradd -m -u 1000 user
|
| 5 |
+
|
| 6 |
USER user
|
| 7 |
ENV PATH="/home/user/.local/bin:$PATH"
|
| 8 |
|
| 9 |
WORKDIR /app
|
| 10 |
|
|
|
|
| 11 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 12 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 13 |
|