devsdevline commited on
Commit
c55b4b5
·
verified ·
1 Parent(s): 6608d1f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -8,12 +8,15 @@ RUN apt-get update && apt-get install -y \
8
  libglib2.0-0 \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
- # Copy all project files
12
- COPY . /app
13
 
14
  # Install Python dependencies
15
  RUN pip install --no-cache-dir -r requirements.txt
16
- RUN pip install uvicorn[standard]
 
 
 
17
 
18
  EXPOSE 7860
19
 
 
8
  libglib2.0-0 \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
+ # Copy requirement files first for caching
12
+ COPY requirements.txt .
13
 
14
  # Install Python dependencies
15
  RUN pip install --no-cache-dir -r requirements.txt
16
+ RUN pip install --no-cache-dir uvicorn[standard]
17
+
18
+ # Now copy the rest of your app files (including .pt weights)
19
+ COPY . .
20
 
21
  EXPOSE 7860
22