RTMDet_PRODUCTION / Dockerfile
phuochungus's picture
move custom library to code
7bf08cb
raw history blame
No virus
446 Bytes
FROM python:3.8
#CREATE A USER
RUN useradd -m -u 1000 user
RUN apt-get update && apt-get install -y libgl1 ffmpeg
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
RUN pip install --no-cache-dir --upgrade pip
#COPY SOURCE CODE
WORKDIR ${HOME}/app
COPY --chown=user . .
RUN pip install -r ./app/requirements.txt
EXPOSE 3000
CMD [ "uvicorn", "app.main:app", "--host" ,"0.0.0.0" ,"--port", "3000"]