Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -2,11 +2,13 @@ FROM 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 |
|
@@ -17,3 +19,4 @@ EXPOSE 7860
|
|
17 |
CMD ["python", "app.py"]
|
18 |
|
19 |
|
|
|
|
2 |
|
3 |
WORKDIR /app
|
4 |
|
|
|
5 |
RUN apt-get update && \
|
6 |
apt-get install -y git build-essential && \
|
7 |
apt-get clean && rm -rf /var/lib/apt/lists/*
|
8 |
|
9 |
+
# Install pip + packaging up front to avoid build errors
|
10 |
+
RUN pip install --no-cache-dir --upgrade pip setuptools packaging
|
11 |
+
|
12 |
COPY requirements.txt .
|
13 |
RUN pip install --no-cache-dir -r requirements.txt
|
14 |
|
|
|
19 |
CMD ["python", "app.py"]
|
20 |
|
21 |
|
22 |
+
|