wjbmattingly commited on
Commit
a6f119f
·
verified ·
1 Parent(s): 1b4b5a0

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -0
Dockerfile CHANGED
@@ -2,6 +2,16 @@ FROM python:3.10
2
 
3
  WORKDIR /app
4
 
 
 
 
 
 
 
 
 
 
 
5
  # Install system dependencies for building Python packages
6
  RUN apt-get update && apt-get install -y \
7
  gcc \
 
2
 
3
  WORKDIR /app
4
 
5
+ # Create cache directories with proper permissions
6
+ RUN mkdir -p /app/.cache /app/.huggingface && \
7
+ chmod 777 /app/.cache /app/.huggingface
8
+
9
+ # Set environment variables for cache directories
10
+ ENV HF_HOME=/app/.huggingface
11
+ ENV TRANSFORMERS_CACHE=/app/.huggingface
12
+ ENV HF_DATASETS_CACHE=/app/.huggingface
13
+ ENV TORCH_HOME=/app/.cache
14
+
15
  # Install system dependencies for building Python packages
16
  RUN apt-get update && apt-get install -y \
17
  gcc \