Spaces:
Sleeping
Sleeping
Commit
·
db6113f
1
Parent(s):
d2aff2a
Install error fix attemp 4
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
@@ -11,9 +11,11 @@ ENV PATH="/home/user/.local/bin:$PATH"
|
|
11 |
WORKDIR /app
|
12 |
COPY --chown=user requirements.txt ./
|
13 |
|
|
|
14 |
RUN pip install --upgrade pip && \
|
|
|
15 |
pip install --no-cache-dir -r requirements.txt
|
16 |
|
17 |
COPY --chown=user . .
|
18 |
|
19 |
-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
11 |
WORKDIR /app
|
12 |
COPY --chown=user requirements.txt ./
|
13 |
|
14 |
+
# Install dependencies in stages to handle build dependencies
|
15 |
RUN pip install --upgrade pip && \
|
16 |
+
pip install --no-cache-dir packaging ninja && \
|
17 |
pip install --no-cache-dir -r requirements.txt
|
18 |
|
19 |
COPY --chown=user . .
|
20 |
|
21 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|