multiapi / Dockerfile
Juna190825's picture
Update Dockerfile
4de82d5 verified
raw
history blame
432 Bytes
FROM python:3.10-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app app/
COPY streamlit_app.py .
EXPOSE 7860
# CMD uvicorn app.main:app --host 0.0.0.0 --port 7860 & streamlit run streamlit_app.py --server.port 7860 --server.address 0.0.0.0
CMD uvicorn app.main:app --host 0.0.0.0 --port 7860 & \
streamlit run streamlit_app.py --server.port 7861 --server.address 0.0.0.0