Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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
|
| 12 |
-
COPY .
|
| 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 |
|