yolo_fast_api_deploy / Dockerfile
ujoy007
another changes in names
5b33654
Raw
History Blame Contribute Delete
375 Bytes
FROM python:3.12-slim
WORKDIR /code
# Install system dependencies
RUN apt-get update && apt-get install -y libgl1 libglib2.0-0
# Copy dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy app code
COPY . .
# Run FastAPI with Uvicorn on the correct file and port
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]