Dockerfile 382 B

123456789101112131415161718
  1. FROM daocloud.io/library/django:1.7.4-python3
  2. RUN mkdir /usr/src/app
  3. ADD . /usr/src/app/
  4. WORKDIR /usr/src/app/
  5. RUN mkdir ~/.pip
  6. RUN cat > ~/.pip/pip.conf << EOF
  7. [global]
  8. trusted-host=mirrors.aliyun.com
  9. index-url=https://mirrors.aliyun.com/pypi/simple/
  10. EOF
  11. # RUN pip install -r requirements.txt
  12. LABEL Name=doo Version=0.0.1
  13. EXPOSE 3000
  14. CMD [ "python","./manage.py","runsesrver" ]