Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse filesFixed non-root issue
- Dockerfile +4 -0
Dockerfile
CHANGED
|
@@ -15,6 +15,10 @@ RUN apt-get update && \
|
|
| 15 |
libgl1 libglib2.0-0 wget git git-lfs python3-pip python-is-python3 && \
|
| 16 |
rm -rf /var/lib/apt/lists/*
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
# Combine pip installations into a single layer
|
| 19 |
RUN pip3 install --upgrade pip==23.3.1 && \
|
| 20 |
pip install --no-cache-dir \
|
|
|
|
| 15 |
libgl1 libglib2.0-0 wget git git-lfs python3-pip python-is-python3 && \
|
| 16 |
rm -rf /var/lib/apt/lists/*
|
| 17 |
|
| 18 |
+
# Switch to user after system setup
|
| 19 |
+
WORKDIR /content
|
| 20 |
+
USER user
|
| 21 |
+
|
| 22 |
# Combine pip installations into a single layer
|
| 23 |
RUN pip3 install --upgrade pip==23.3.1 && \
|
| 24 |
pip install --no-cache-dir \
|