Spaces:
Running
Running
Acelle Krislette Rosales
commited on
Commit
·
68d10ca
1
Parent(s):
31c53e6
Added cache for llm2vec
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
|
@@ -25,6 +25,8 @@ RUN apt-get update && apt-get install -y \
|
|
| 25 |
|
| 26 |
WORKDIR /app
|
| 27 |
|
|
|
|
|
|
|
| 28 |
# Copy and install Python dependencies
|
| 29 |
COPY pyproject.toml poetry.lock* ./
|
| 30 |
RUN python3.11 -m pip install poetry && \
|
|
@@ -41,6 +43,7 @@ COPY scripts/ ./scripts/
|
|
| 41 |
# Set environment
|
| 42 |
ENV PYTHONPATH="/app"
|
| 43 |
ENV HF_HOME="/app/.cache/huggingface"
|
|
|
|
| 44 |
|
| 45 |
# Hugging Face Spaces specific, expose port 7860
|
| 46 |
EXPOSE 7860
|
|
|
|
| 25 |
|
| 26 |
WORKDIR /app
|
| 27 |
|
| 28 |
+
RUN mkdir -p /app/.cache/huggingface && chmod 777 /app/.cache/huggingface
|
| 29 |
+
|
| 30 |
# Copy and install Python dependencies
|
| 31 |
COPY pyproject.toml poetry.lock* ./
|
| 32 |
RUN python3.11 -m pip install poetry && \
|
|
|
|
| 43 |
# Set environment
|
| 44 |
ENV PYTHONPATH="/app"
|
| 45 |
ENV HF_HOME="/app/.cache/huggingface"
|
| 46 |
+
ENV TRANSFORMERS_CACHE="/app/.cache/huggingface"
|
| 47 |
|
| 48 |
# Hugging Face Spaces specific, expose port 7860
|
| 49 |
EXPOSE 7860
|