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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -10,14 +10,14 @@ RUN apt-get update && apt-get install -y \
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
 
10
  curl \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
+ # Copy only requirements.txt first
14
+ COPY requirements.txt .
15
 
16
+ # Install dependencies
17
  RUN pip install --upgrade pip setuptools wheel && \
18
+ pip install -r requirements.txt
19
 
20
+ # Copy source code last
21
  COPY . .
22
 
23
  EXPOSE 7860