scene-understanding / Dockerfile
lord-reso's picture
Initial setup
fea56f6
raw
history blame contribute delete
522 Bytes
FROM python:3.10
WORKDIR /code
COPY requirements.txt ./
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH \
MPLCONFIGDIR=/home/user/.config/matplotlib \
FONTCONFIG_PATH=/home/user/.config/fontconfig \
NUMBA_DISABLE_JIT=1
WORKDIR $HOME/app
COPY --chown=user . $HOME/app/
# CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]