Spaces:
Runtime error
Runtime error
Upload 3 files
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
|
@@ -7,6 +7,11 @@ RUN apt-get update && apt-get install -y wget && rm -rf /var/lib/apt/lists/*
|
|
| 7 |
# Set working directory
|
| 8 |
WORKDIR /app
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
# Copy the requirements file and install dependencies
|
| 11 |
COPY requirements.txt .
|
| 12 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 7 |
# Set working directory
|
| 8 |
WORKDIR /app
|
| 9 |
|
| 10 |
+
# Create a writable cache directory and set environment variable
|
| 11 |
+
RUN mkdir -p /app/.cache
|
| 12 |
+
ENV HF_HOME=/app/.cache
|
| 13 |
+
ENV USER_AGENT="my-gradio-app"
|
| 14 |
+
|
| 15 |
# Copy the requirements file and install dependencies
|
| 16 |
COPY requirements.txt .
|
| 17 |
RUN pip install --no-cache-dir -r requirements.txt
|