Dockerfile 422 B

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