Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
|
@@ -12,7 +12,8 @@ RUN mkdir -p /cache && \
|
|
| 12 |
ENV TRANSFORMERS_CACHE=/cache \
|
| 13 |
HF_HOME=/cache \
|
| 14 |
XDG_CACHE_HOME=/cache \
|
| 15 |
-
PYTHONPATH=/code
|
|
|
|
| 16 |
|
| 17 |
# Install system dependencies
|
| 18 |
RUN apt-get update && apt-get install -y \
|
|
@@ -45,7 +46,8 @@ COPY ./models /code/models
|
|
| 45 |
|
| 46 |
# Set proper permissions for the application
|
| 47 |
RUN chown -R 1000:1000 /code && \
|
| 48 |
-
chmod -R 755 /code
|
|
|
|
| 49 |
|
| 50 |
EXPOSE 7860
|
| 51 |
|
|
|
|
| 12 |
ENV TRANSFORMERS_CACHE=/cache \
|
| 13 |
HF_HOME=/cache \
|
| 14 |
XDG_CACHE_HOME=/cache \
|
| 15 |
+
PYTHONPATH=/code \
|
| 16 |
+
TORCH_HOME=/cache
|
| 17 |
|
| 18 |
# Install system dependencies
|
| 19 |
RUN apt-get update && apt-get install -y \
|
|
|
|
| 46 |
|
| 47 |
# Set proper permissions for the application
|
| 48 |
RUN chown -R 1000:1000 /code && \
|
| 49 |
+
chmod -R 755 /code && \
|
| 50 |
+
chmod -R 777 /cache
|
| 51 |
|
| 52 |
EXPOSE 7860
|
| 53 |
|