Spaces:
Runtime error
Runtime error
Updated Dockerfile for Hugging Face Spaces deployment
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
|
@@ -44,11 +44,12 @@ ENV PATH=${CUDA_HOME}/bin:${PATH}
|
|
| 44 |
# Optionally set LD_LIBRARY_PATH for CUDA libraries
|
| 45 |
ENV LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}
|
| 46 |
|
| 47 |
-
# Set environment variable for
|
| 48 |
-
ENV
|
|
|
|
| 49 |
|
| 50 |
# Create cache directory and set permissions
|
| 51 |
-
RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache
|
| 52 |
|
| 53 |
# Copy the setup script and requirements file into the container
|
| 54 |
COPY setup.sh requirements.txt /app/
|
|
|
|
| 44 |
# Optionally set LD_LIBRARY_PATH for CUDA libraries
|
| 45 |
ENV LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}
|
| 46 |
|
| 47 |
+
# Set environment variable for Hugging Face cache directory
|
| 48 |
+
ENV HF_HOME=/app/.cache/huggingface
|
| 49 |
+
ENV TRANSFORMERS_CACHE=/app/.cache/huggingface
|
| 50 |
|
| 51 |
# Create cache directory and set permissions
|
| 52 |
+
RUN mkdir -p /app/.cache/huggingface && chmod -R 777 /app/.cache/huggingface
|
| 53 |
|
| 54 |
# Copy the setup script and requirements file into the container
|
| 55 |
COPY setup.sh requirements.txt /app/
|