Dockerfile.1 414 B

123456789101112131415161718
  1. FROM python:alpine
  2. LABEL Name=google/doo Version=v1.4
  3. # google/doo:v1.4
  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 -r requirements.txt
  14. EXPOSE 3000
  15. CMD [ "python","./manage.py","runsesrver","0.0.0.0:3000" ]