Update Dockerfile
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
|
@@ -8,6 +8,10 @@ WORKDIR /app
|
|
| 8 |
COPY requirements.txt .
|
| 9 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
# Copy the FastAPI app
|
| 12 |
COPY app.py .
|
| 13 |
|
|
|
|
| 8 |
COPY requirements.txt .
|
| 9 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
|
| 11 |
+
# Create and set permissions for /app/.cache/huggingface and /tmp
|
| 12 |
+
RUN mkdir -p /app/.cache/huggingface /tmp && \
|
| 13 |
+
chmod -R 777 /app/.cache /tmp
|
| 14 |
+
|
| 15 |
# Copy the FastAPI app
|
| 16 |
COPY app.py .
|
| 17 |
|