Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
|
@@ -6,9 +6,14 @@ COPY requirements.txt requirements.txt
|
|
| 6 |
RUN pip install --no-cache-dir --default-timeout=100 --retries=5 -r requirements.txt
|
| 7 |
|
| 8 |
ENV HF_HOME=/app/.cache
|
|
|
|
| 9 |
RUN mkdir -p $HF_HOME && chown -R 1000:1000 $HF_HOME
|
| 10 |
|
|
|
|
|
|
|
|
|
|
| 11 |
|
|
|
|
| 12 |
COPY . .
|
| 13 |
|
| 14 |
EXPOSE 7860
|
|
|
|
| 6 |
RUN pip install --no-cache-dir --default-timeout=100 --retries=5 -r requirements.txt
|
| 7 |
|
| 8 |
ENV HF_HOME=/app/.cache
|
| 9 |
+
# Create the cache directory
|
| 10 |
RUN mkdir -p $HF_HOME && chown -R 1000:1000 $HF_HOME
|
| 11 |
|
| 12 |
+
# Copy the download script and run it
|
| 13 |
+
COPY download_model.py .
|
| 14 |
+
RUN python download_model.py
|
| 15 |
|
| 16 |
+
# Now copy the rest of the application
|
| 17 |
COPY . .
|
| 18 |
|
| 19 |
EXPOSE 7860
|