05360171创建于 2022年3月18日历史提交
ARG FROM_IMAGE_NAME
FROM $FROM_IMAGE_NAME
RUN mkdir ./fcos_requirement
WORKDIR ./fcos_requirement
COPY requirements.txt .
RUN mkdir requirements
COPY requirements/* ./requirements/
RUN pip3.7 install -r requirements.txt
RUN chmod 777 /tmp
RUN apt-get update && apt-get install -y git 2to3 libgl1-mesa-glx
RUN git config --global http.sslverify false
RUN git clone -b v1.2.6 --depth=1 https://github.com/open-mmlab/mmcv.git
WORKDIR ./mmcv
ENV MMCV_WITH_OPS=1
ENV MAX_JOBS=8
COPY mmcv_need/_functions.py ./mmcv/parallel/
COPY mmcv_need/distributed.py ./mmcv/parallel/
COPY mmcv_need/data_parallel.py ./mmcv/parallel/
COPY mmcv_need/builder.py ./mmcv/runner/optimizer/
COPY mmcv_need/dist_utils.py ./mmcv/runner/
COPY mmcv_need/optimizer.py ./mmcv/runner/hooks/
COPY mmcv_need/iter_timer.py ../mmcv/mmcv/runner/hooks/
COPY mmcv_need/base_runner.py ../mmcv/mmcv/runner/
COPY mmcv_need/epoch_based_runner.py ../mmcv/mmcv/runner/