Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +7 -1
Dockerfile
CHANGED
|
@@ -1,7 +1,12 @@
|
|
| 1 |
-
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
COPY requirements.txt .
|
| 6 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 7 |
|
|
@@ -11,3 +16,4 @@ EXPOSE 7860
|
|
| 11 |
|
| 12 |
CMD ["python", "app.py"]
|
| 13 |
|
|
|
|
|
|
| 1 |
+
ROM python:3.10-slim
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
# Install git + gcc (needed for some packages) + clean up after
|
| 6 |
+
RUN apt-get update && \
|
| 7 |
+
apt-get install -y git build-essential && \
|
| 8 |
+
apt-get clean && rm -rf /var/lib/apt/lists/*
|
| 9 |
+
|
| 10 |
COPY requirements.txt .
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
|
|
|
| 16 |
|
| 17 |
CMD ["python", "app.py"]
|
| 18 |
|
| 19 |
+
|