Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files9 unmodified lines10111213141516171821 unmodified lines4041424344454647489 unmodified lines#ENV PATH="/home/user/.local/bin:$PATH"#ENV HF_HOME="/app/.cache/huggingface"ENV TRANSFORMERS_CACHE=/app/.cache/huggingfaceENV HF_HOME=/app/.cache/huggingfaceENV MPLCONFIGDIR=/app/.cache/matplotli# Set the working directoryWORKDIR /app21 unmodified lines# Create directories for session storage, uploads, and cacheRUN mkdir -p /app/flask_sessions /app/uploads /tmp/matplotlib /tmp/transformers_cache && chmod -R 777 /app/flask_sessions /app/uploads /tmp/matplotlib /tmp/transformers_cache#hugging FaceRUN mkdir -p /app/.cache/huggingface /app/.cache/matplotlib# Copy the rest of the application code to /appCOPY . /app/9 unmodified lines1011121314151617181920212223242521 unmodified lines4748495051529 unmodified lines#ENV PATH="/home/user/.local/bin:$PATH"#ENV HF_HOME="/app/.cache/huggingface"# Create cache directoriesRUN mkdir -p /app/.cache/huggingface /app/.cache/matplotlib# Set environment variables for Hugging Face and Matplotlib cacheENV TRANSFORMERS_CACHE=/app/.cache/huggingfaceENV HF_HOME=/app/.cache/huggingfaceENV MPLCONFIGDIR=/app/.cache/matplotlib# Adding permission for the cacheRUN chmod -R 777 /app/.cache# Set the working directoryWORKDIR /app21 unmodified lines# Create directories for session storage, uploads, and cacheRUN mkdir -p /app/flask_sessions /app/uploads /tmp/matplotlib /tmp/transformers_cache && chmod -R 777 /app/flask_sessions /app/uploads /tmp/matplotlib /tmp/transformers_cache# Copy the rest of the application code to /appCOPY . /app/
Dockerfile+8-4