File size: 676 Bytes
ed01507 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
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"] |