1. FROM tensorflow/tensorflow:2.0.0-py3
    2. COPY src /src
    3. COPY entrypoints /src/entrypoints
    4. WORKDIR /src
    5. RUN sed -i s@/archive.ubuntu.com/@/mirrors.ustc.edu.cn/@g /etc/apt/sources.list \
    6. && sed -i s@/security.ubuntu.com/@/mirrors.ustc.edu.cn/@g /etc/apt/sources.list \
    7. && apt-get clean \
    8. && apt-get update \
    9. && apt-get install -y --no-install-recommends \
    10. bzip2 \
    11. g++ \
    12. git \
    13. graphviz \
    14. libgl1-mesa-glx \
    15. libhdf5-dev \
    16. openmpi-bin \
    17. wget && \
    18. rm -rf /var/lib/apt/lists/* \
    19. && pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
    20. ENV PYTHONPATH='/src/:$PYTHONPATH'
    21. ENTRYPOINT ["entrypoints/entrypoint.train.cpu.sh"]