U-2-Net/Dockerfile

17 lines
359 B
Docker

FROM python:3.8.13
WORKDIR /app
COPY . /app
RUN pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple
RUN pip install common
RUN pip install dual
RUN pip install tight
RUN pip install data
RUN pip install prox
RUN pip install -r requirements.txt
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
CMD ["python", "app.py"]