Update Dockerfile
Browse files- Dockerfile +4 -6
Dockerfile
CHANGED
|
@@ -2,18 +2,16 @@ FROM python:3.11-slim
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
#
|
| 6 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
&&
|
| 10 |
|
| 11 |
-
# Install deps (CPU build, no CUDA)
|
| 12 |
COPY requirements.txt .
|
| 13 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 14 |
|
| 15 |
COPY app.py .
|
| 16 |
|
| 17 |
EXPOSE 7860
|
| 18 |
-
|
| 19 |
CMD ["python", "app.py"]
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
# Only need git-lfs for model download, no build tools needed anymore
|
| 6 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 7 |
+
git-lfs \
|
| 8 |
+
&& rm -rf /var/lib/apt/lists/* \
|
| 9 |
+
&& git lfs install
|
| 10 |
|
|
|
|
| 11 |
COPY requirements.txt .
|
| 12 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
|
| 14 |
COPY app.py .
|
| 15 |
|
| 16 |
EXPOSE 7860
|
|
|
|
| 17 |
CMD ["python", "app.py"]
|