sanmmarr29 commited on
Commit
4e7a6e5
·
verified ·
1 Parent(s): c660b8d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -0
Dockerfile CHANGED
@@ -7,6 +7,10 @@ RUN apt-get update && apt-get install -y \
7
  git \
8
  && rm -rf /var/lib/apt/lists/*
9
 
 
 
 
 
10
  # Copy requirements first to leverage Docker cache
11
  COPY requirements.txt .
12
 
@@ -17,6 +21,9 @@ RUN pip install --no-cache-dir -r requirements.txt \
17
  # Copy application code
18
  COPY . .
19
 
 
 
 
20
  # Expose port
21
  EXPOSE 7860
22
 
 
7
  git \
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
+ # Create cache directory with proper permissions
11
+ RUN mkdir -p /app/cache && \
12
+ chmod 777 /app/cache
13
+
14
  # Copy requirements first to leverage Docker cache
15
  COPY requirements.txt .
16
 
 
21
  # Copy application code
22
  COPY . .
23
 
24
+ # Set environment variable for DSPy cache
25
+ ENV DSPY_CACHE_DIR=/app/cache
26
+
27
  # Expose port
28
  EXPOSE 7860
29