haydpw's picture
edit dockerfile
c46a636
raw
history blame
307 Bytes
FROM python:3.9.4
RUN useradd -m -u 1000 haydpw
USER haydpw
ENV PATH="/home/haydpw/.local/bin:$PATH"
COPY --chown=user . .
WORKDIR /
RUN apt-get install -y libgl1-mesa-glx
RUN pip install --no-cache-dir --upgrade -r requirements.txt
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]