|
FROM python:3.8 |
|
|
|
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 |
|
|
|
|
|
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |