FROM python:alpine LABEL Name=google/doo Version=v1.5 # google/doo:v1.5 RUN mkdir -p /root/app # ADD . /root/app WORKDIR /root/app RUN mkdir -p ~/.pip RUN echo -e '\n\ [global] \n\ trusted-host=mirrors.aliyun.com \n\ index-url=https://mirrors.aliyun.com/pypi/simple/ \n\ ' > ~/.pip/pip.conf RUN pip install Django==2.0.6 EXPOSE 3000 CMD ["/bin/sh","-c","while true;do echo hello docker;sleep 1;done"]