Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +7 -2
Dockerfile
CHANGED
|
@@ -6,7 +6,12 @@ COPY ./requirements.txt /code/requirements.txt
|
|
| 6 |
|
| 7 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 8 |
|
| 9 |
-
COPY ./zephyr-7b-beta.Q4_K_S.gguf /code/zephyr-7b-beta.Q4_K_S.gguf
|
| 10 |
COPY ./main.py /code/main.py
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 8 |
|
|
|
|
| 9 |
COPY ./main.py /code/main.py
|
| 10 |
|
| 11 |
+
# Set the environment variable for the cache directory
|
| 12 |
+
ENV TRANSFORMERS_CACHE=/code/cache
|
| 13 |
+
|
| 14 |
+
# Ensure the cache directory exists and is writable
|
| 15 |
+
RUN mkdir -p /code/cache && chmod -R 777 /code/cache
|
| 16 |
+
|
| 17 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|