iris_classifier / Dockerfile
Mirikram's picture
All files are added
10a92b6 verified
raw
history blame contribute delete
381 Bytes
FROM python:3.10-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# expose FastAPI on port 8000
EXPOSE 8000
# expose Streamlit on port 8501
EXPOSE 8501
# run both in parallel
CMD ["sh", "-c", "uvicorn main:app --host 0.0.0.0 --port 8000 & streamlit run frontend.py --server.port=8501 --server.address=0.0.0.0"]