Spaces:
Sleeping
Sleeping
Upload Dockerfile with huggingface_hub
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -11,12 +11,12 @@ COPY . /smartcat
|
|
| 11 |
RUN pip install --upgrade pip
|
| 12 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
|
| 14 |
-
EXPOSE
|
| 15 |
|
| 16 |
ENV PYTHONUNBUFFERED=1 \
|
| 17 |
PYTHONDONTWRITEBYTECODE=1
|
| 18 |
|
| 19 |
-
# CMD ["uvicorn", "scripts.api:app", "--host", "0.0.0.0", "--port", "
|
| 20 |
|
| 21 |
# Command to start FastAPI and Streamlit
|
| 22 |
-
CMD ["bash", "-c", "uvicorn scripts.api:app --host 0.0.0.0 --port
|
|
|
|
| 11 |
RUN pip install --upgrade pip
|
| 12 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
|
| 14 |
+
EXPOSE 7860 8501
|
| 15 |
|
| 16 |
ENV PYTHONUNBUFFERED=1 \
|
| 17 |
PYTHONDONTWRITEBYTECODE=1
|
| 18 |
|
| 19 |
+
# CMD ["uvicorn", "scripts.api:app", "--host", "0.0.0.0", "--port", "7860", "--log-level", "debug"]
|
| 20 |
|
| 21 |
# Command to start FastAPI and Streamlit
|
| 22 |
+
CMD ["bash", "-c", "uvicorn scripts.api:app --host 0.0.0.0 --port 7860 & streamlit run app.py --server.port=8501 --server.address=0.0.0.0"]
|