class10-ml-fastapi / Dockerfile
github-actions
Auto-deploy from GitHub Actions
83851f4
raw
history blame contribute delete
270 Bytes
FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 7860
CMD ["uvicorn", "app_ml:app", "--host", "0.0.0.0", "--port", "7860"]