Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -9
Dockerfile
CHANGED
|
@@ -1,18 +1,12 @@
|
|
| 1 |
-
FROM python:3.
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
COPY requirements.txt .
|
| 6 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 7 |
|
| 8 |
-
COPY
|
| 9 |
-
COPY streamlit_app.py .
|
| 10 |
|
| 11 |
EXPOSE 7860
|
| 12 |
|
| 13 |
-
|
| 14 |
-
# Run FastAPI on port 7860 and Streamlit on 7861
|
| 15 |
-
CMD uvicorn app.main:app --host 0.0.0.0 --port 7860 & \
|
| 16 |
-
streamlit run streamlit_app.py --server.port 7861 --server.address 0.0.0.0
|
| 17 |
-
|
| 18 |
-
|
|
|
|
| 1 |
+
FROM python:3.9-slim
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
COPY requirements.txt .
|
| 6 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 7 |
|
| 8 |
+
COPY . .
|
|
|
|
| 9 |
|
| 10 |
EXPOSE 7860
|
| 11 |
|
| 12 |
+
CMD ["python", "app.py"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|