Spaces:
Sleeping
Sleeping
Junathan Richie commited on
Commit ·
ac0a354
1
Parent(s): 8c6e229
fix: install depedencies before switch user
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
|
@@ -1,9 +1,5 @@
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
| 3 |
-
RUN useradd -m -u 1000 user
|
| 4 |
-
USER user
|
| 5 |
-
ENV PATH="/home/user/.local/bin:$PATH"
|
| 6 |
-
|
| 7 |
RUN apt-get update && apt-get install -y \
|
| 8 |
libgl1-mesa-glx \
|
| 9 |
ffmpeg \
|
|
@@ -12,6 +8,10 @@ RUN apt-get update && apt-get install -y \
|
|
| 12 |
&& apt-get purge -y --auto-remove nvidia-common \
|
| 13 |
&& rm -rf /var/lib/apt/lists/*
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
WORKDIR /app
|
| 16 |
|
| 17 |
COPY --chown=user . .
|
|
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
RUN apt-get update && apt-get install -y \
|
| 4 |
libgl1-mesa-glx \
|
| 5 |
ffmpeg \
|
|
|
|
| 8 |
&& apt-get purge -y --auto-remove nvidia-common \
|
| 9 |
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
|
| 11 |
+
RUN useradd -m -u 1000 user
|
| 12 |
+
USER user
|
| 13 |
+
ENV PATH="/home/user/.local/bin:$PATH"
|
| 14 |
+
|
| 15 |
WORKDIR /app
|
| 16 |
|
| 17 |
COPY --chown=user . .
|