Sinketji's picture
Create Dockerfile
9e8f455 verified
raw
history blame contribute delete
412 Bytes
FROM python:3.11-slim
WORKDIR /code
# System deps (optional but helps some wheels)
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir -r /code/requirements.txt
COPY app /code/app
EXPOSE 7860
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]