NoLev commited on
Commit
f0c24f2
·
verified ·
1 Parent(s): 27dda0a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -4,6 +4,9 @@ FROM python:3.12-slim
4
  # Set working directory
5
  WORKDIR /app
6
 
 
 
 
7
  # Install system dependencies (for PDF handling and build tools)
8
  RUN apt-get update && apt-get install -y \
9
  gcc \
@@ -17,7 +20,7 @@ RUN pip install --no-cache-dir -r requirements.txt \
17
  # Copy application code
18
  COPY . .
19
 
20
- # Expose port (from your uvicorn config)
21
  EXPOSE 7860
22
 
23
  # Run the app
 
4
  # Set working directory
5
  WORKDIR /app
6
 
7
+ # Set Hugging Face cache to writable dir
8
+ ENV TRANSFORMERS_CACHE=/tmp/huggingface
9
+
10
  # Install system dependencies (for PDF handling and build tools)
11
  RUN apt-get update && apt-get install -y \
12
  gcc \
 
20
  # Copy application code
21
  COPY . .
22
 
23
+ # Expose port
24
  EXPOSE 7860
25
 
26
  # Run the app