Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +9 -4
Dockerfile
CHANGED
|
@@ -8,9 +8,14 @@ USER user
|
|
| 8 |
ENV PATH="/home/user/.local/bin:$PATH"
|
| 9 |
|
| 10 |
WORKDIR /app
|
|
|
|
|
|
|
| 11 |
|
| 12 |
-
|
| 13 |
-
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 14 |
|
| 15 |
-
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
ENV PATH="/home/user/.local/bin:$PATH"
|
| 9 |
|
| 10 |
WORKDIR /app
|
| 11 |
+
# Copy app code
|
| 12 |
+
COPY . .
|
| 13 |
|
| 14 |
+
# ybyjngamhtcuaupc gsmt
|
|
|
|
| 15 |
|
| 16 |
+
# Make the entire /app directory fully writeable for all users
|
| 17 |
+
RUN chmod -R 777 /app
|
| 18 |
+
|
| 19 |
+
# Ensure the app runs as the same user as the Space UI
|
| 20 |
+
RUN useradd -m -u 1000 user
|
| 21 |
+
USER user
|