alexpantex commited on
Commit
700554d
·
verified ·
1 Parent(s): 2c84f1d

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. 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 8000 8501
15
 
16
  ENV PYTHONUNBUFFERED=1 \
17
  PYTHONDONTWRITEBYTECODE=1
18
 
19
- # CMD ["uvicorn", "scripts.api:app", "--host", "0.0.0.0", "--port", "8000", "--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 8000 & streamlit run app.py --server.port=8501 --server.address=0.0.0.0"]
 
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"]