Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -6
Dockerfile
CHANGED
|
@@ -3,12 +3,8 @@ FROM python:3.9
|
|
| 3 |
WORKDIR /code
|
| 4 |
|
| 5 |
COPY requirements.txt .
|
| 6 |
-
RUN pip install -r requirements.txt
|
| 7 |
|
| 8 |
COPY ./app ./app
|
| 9 |
-
COPY ./frontend ./frontend
|
| 10 |
|
| 11 |
-
|
| 12 |
-
RUN pip install fastapi uvicorn gradio
|
| 13 |
-
|
| 14 |
-
CMD uvicorn app.main:app --host 0.0.0.0 --port 8000 & python frontend/app.py
|
|
|
|
| 3 |
WORKDIR /code
|
| 4 |
|
| 5 |
COPY requirements.txt .
|
| 6 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 7 |
|
| 8 |
COPY ./app ./app
|
|
|
|
| 9 |
|
| 10 |
+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
|
|
|
|