FROM python:3.9.4 USER root RUN apt-get update && apt-get install -y libgl1-mesa-glx RUN useradd -m -u 1000 haydpw USER haydpw ENV PATH="/home/haydpw/.local/bin:$PATH" COPY --chown=user . . WORKDIR / RUN pip install --no-cache-dir --upgrade -r requirements.txt CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]