CoolFace
Apppublic

dualdatarate/ipoFastApi

sourceHugging Faceupdated 4mo agoView on Hugging Face
0likes
Dockerfile15 linesDownload Raw Back to root
1FROM python:3.10-slim2 3# Security requirement for Hugging Face4RUN useradd -m -u 1000 user5USER user6ENV HOME=/home/user PATH=/home/user/.local/bin:$PATH7WORKDIR $HOME/app8 9# Copy all folders (app, data, frontend)10COPY --chown=user . .11 12RUN pip install --no-cache-dir -r requirements.txt13 14# Run FastAPI on background port 8000 AND Streamlit on mandatory port 786015CMD uvicorn app.api:app --host 0.0.0.0 --port 8000 & streamlit run frontend/runner.py --server.port 7860 --server.address 0.0.0.0