zest / Dockerfile
krunakuamar's picture
Upload 216 files
ed01507
raw
history blame
676 Bytes
FROM python:3.8
# ENV MPLCONFIGDIR=/tmp/matplotlib-399fa59w
RUN mkdir -m 777 -p /app/
RUN mkdir -m 777 -p /.cache/matplotlib
RUN mkdir -m 777 -p /.cache/huggingface/hub/
RUN mkdir -m 777 -p /.cache/torch/
RUN mkdir -m 777 -p /.cache/
RUN mkdir -m 777 -p /.config/matplotlib/
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
COPY ./app.py ./app.py
COPY ./lama_cleaner ./lama_cleaner
COPY ./yolov8x-seg.pt ./yolov8x-seg.pt
COPY ./requirements.txt ./requirements.txt
RUN pip install -r ./requirements.txt
ENV HOST="0.0.0.0"
ENV PORT=7860
#ENTRYPOINT python3 app.py --host ${HOST} --port ${PORT}
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]