Spaces:
Sleeping
Sleeping
Commit
·
99f6f5f
1
Parent(s):
137dc84
fix docker
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -8,9 +8,10 @@ ENV PATH="/home/user/.local/bin:$PATH"
|
|
8 |
WORKDIR /app
|
9 |
|
10 |
COPY --chown=user ./requirements.txt requirements.txt
|
11 |
-
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
|
12 |
|
13 |
COPY --chown=user . /app
|
14 |
|
15 |
# Start the application with uvicorn
|
16 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"
|
|
|
8 |
WORKDIR /app
|
9 |
|
10 |
COPY --chown=user ./requirements.txt requirements.txt
|
11 |
+
RUN pip install --no-cache-dir --upgrade -r requirements.txt \
|
12 |
+
&& pip uninstall -y uvloop # Ensure uvloop is not installed
|
13 |
|
14 |
COPY --chown=user . /app
|
15 |
|
16 |
# Start the application with uvicorn
|
17 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|