f1-pit-predictor / Dockerfile
T0MYYY's picture
Deploy full-stack FastAPI + dashboard with CSV batch inference
bb21b5d verified
raw
history blame contribute delete
452 Bytes
FROM python:3.12-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends libgomp1 \
&& rm -rf /var/lib/apt/lists/*
COPY deploy/hf/requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
COPY src/ src/
COPY models/champion/ models/champion/
COPY dashboard/ dashboard/
ENV MLFLOW_TRACKING_URI=file:///tmp/mlruns
EXPOSE 7860
CMD ["uvicorn", "src.api:app", "--host", "0.0.0.0", "--port", "7860"]