maskformer-swin-base-coco/Dockerfile

24 lines
533 B
Docker

FROM python:3.7.4-slim
WORKDIR /app
COPY requirements.txt /app
RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
RUN pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple/
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y git
RUN apt-get install -y tk
RUN python -m pip install git+https://ghproxy.com/https://github.com/cocodataset/panopticapi.git
RUN pip3 install --trusted-host pypi.python.org -r requirements.txt
COPY . /app
CMD ["python", "app.py"]