my-fastapi-model / Dockerfile
mudassir345b's picture
Update Dockerfile
3dfe867 verified
raw
history blame contribute delete
270 Bytes
FROM python:3.10-slim
WORKDIR /app
COPY . .
RUN pip install --no-cache-dir -r requirements.txt
RUN apt-get update && apt-get install -y libgl1
RUN apt-get update && apt-get install -y libglib2.0-0
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]