samithcs commited on
Commit
23ddf11
·
verified ·
1 Parent(s): c5ad658

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -3
Dockerfile CHANGED
@@ -10,10 +10,15 @@ RUN apt-get update && apt-get install -y \
10
  curl \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
- COPY . .
 
 
 
 
 
14
 
15
- RUN pip install --upgrade pip setuptools wheel
16
- RUN pip install .
17
 
18
  EXPOSE 7860
19
 
 
10
  curl \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
+ # Copy dependency files first for better caching
14
+ COPY setup.py pyproject.toml requirements.txt* ./
15
+
16
+ # Upgrade pip and install dependencies
17
+ RUN pip install --upgrade pip setuptools wheel && \
18
+ pip install .
19
 
20
+ # Copy source code last
21
+ COPY . .
22
 
23
  EXPOSE 7860
24