Spaces:
Running
Running
Fix package versions
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
|
@@ -10,9 +10,9 @@ FROM python:3.11
|
|
| 10 |
# "pydantic~=1.0"
|
| 11 |
|
| 12 |
WORKDIR /app
|
| 13 |
-
|
| 14 |
# Copy project files
|
| 15 |
-
|
| 16 |
RUN apt-get update && apt-get install -y \
|
| 17 |
# git \
|
| 18 |
# git-lfs \
|
|
@@ -35,8 +35,8 @@ RUN apt-get update && apt-get install -y \
|
|
| 35 |
# apt-get clean
|
| 36 |
|
| 37 |
# Install main requirements with no build isolation to fix numpy dependency issues
|
| 38 |
-
RUN pip install --no-cache-dir numpy==1.
|
| 39 |
-
|
| 40 |
EXPOSE 7860
|
| 41 |
|
| 42 |
CMD ["python", "app.py"]
|
|
|
|
| 10 |
# "pydantic~=1.0"
|
| 11 |
|
| 12 |
WORKDIR /app
|
| 13 |
+
COPY requirements.txt .
|
| 14 |
# Copy project files
|
| 15 |
+
|
| 16 |
RUN apt-get update && apt-get install -y \
|
| 17 |
# git \
|
| 18 |
# git-lfs \
|
|
|
|
| 35 |
# apt-get clean
|
| 36 |
|
| 37 |
# Install main requirements with no build isolation to fix numpy dependency issues
|
| 38 |
+
RUN pip install --no-cache-dir numpy==2.1.2 && pip install --no-cache-dir --no-build-isolation -r requirements.txt
|
| 39 |
+
COPY . .
|
| 40 |
EXPOSE 7860
|
| 41 |
|
| 42 |
CMD ["python", "app.py"]
|