Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +1 -4
Dockerfile
CHANGED
|
@@ -16,7 +16,6 @@ RUN mkdir -p /data/.hf/cache /data/.cache/huggingface \
|
|
| 16 |
&& chmod -R a+rw /data
|
| 17 |
# --------------------------------------------------
|
| 18 |
|
| 19 |
-
# Copy files first (owned by root initially)
|
| 20 |
COPY app.py .
|
| 21 |
COPY requirements.txt .
|
| 22 |
COPY INS.xlsx .
|
|
@@ -24,11 +23,9 @@ COPY INS.xlsx .
|
|
| 24 |
# Install Python deps
|
| 25 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 26 |
|
| 27 |
-
|
| 28 |
-
# (Hugging Face Spaces often runs as a non-root user)
|
| 29 |
RUN chmod -R a+rw /app
|
| 30 |
|
| 31 |
-
# Optional: pre-create a writable log file to silence the warning completely
|
| 32 |
RUN touch /app/logs.log && chmod 666 /app/logs.log
|
| 33 |
|
| 34 |
# Gradio / Matplotlib envs
|
|
|
|
| 16 |
&& chmod -R a+rw /data
|
| 17 |
# --------------------------------------------------
|
| 18 |
|
|
|
|
| 19 |
COPY app.py .
|
| 20 |
COPY requirements.txt .
|
| 21 |
COPY INS.xlsx .
|
|
|
|
| 23 |
# Install Python deps
|
| 24 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 25 |
|
| 26 |
+
|
|
|
|
| 27 |
RUN chmod -R a+rw /app
|
| 28 |
|
|
|
|
| 29 |
RUN touch /app/logs.log && chmod 666 /app/logs.log
|
| 30 |
|
| 31 |
# Gradio / Matplotlib envs
|