# Use Python 3.10 on Debian FROM python:3.10-slim-bookworm # Install basic math and system libraries RUN apt-get update && apt-get install -y \ libopenblas-dev \ libgomp1 \ && rm -rf /var/lib/apt/lists/* WORKDIR /code # Install our requirements COPY ./requirements.txt /code/requirements.txt RUN pip install --no-cache-dir -r /code/requirements.txt # Copy the rest of the application COPY . . # Start the API on port 7860 CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]