amd64_dockerfile.txt 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. # 基于的基础镜像-在dockerhub找
  2. FROM hjdhnx/drpy:amd64
  3. # 添加描述信息
  4. MAINTAINER python3.7+drpy+supervisord updated by "hjdhnx"
  5. # 设置app文件夹是工作目录
  6. WORKDIR /root/sd/pywork/dr_py
  7. RUN rm -rf /root/sd/pywork/dr_py && mkdir -p /root/sd/pywork/dr_py
  8. # 复制文件及目录过去
  9. COPY . /root/sd/pywork/dr_py
  10. # 装依赖
  11. # RUN pip install -i https://mirrors.cloud.tencent.com/pypi/simple --upgrade pip \
  12. # && pip config set global.index-url https://mirrors.cloud.tencent.com/pypi/simple
  13. # 执行指令,安装依赖
  14. RUN pip install -r requirements.txt
  15. # 设置语言支持中文打印
  16. # ENV LANG C.UTF-8
  17. # ENV LC_ALL C.UTF-8
  18. # cd /ect/docker vi daemon.json
  19. # "https://6kx4zyno.mirror.aliyuncs.com"
  20. # vi /etc/resolv.conf 加了两行也不行??
  21. # systemctl daemon-reload
  22. # systemctl restart docker
  23. # docker build -f amd64_dockerfile.txt -t hjdhnx/drpy:amd64-v3.9.0 .
  24. # docker run -it -p 5705:5705 -p 9001:9001 --restart=always --name drpy -d hjdhnx/drpy:amd64-v3.9.0
  25. # docker push hjdhnx/drpy:amd64-v3.9.0
  26. # docker cp . drpy:/root/sd/pywork/
  27. # CMD supervisord -c /root/sd/pywork/dr_py/super/flask.conf && /bin/bash
  28. ENTRYPOINT ["/etc/autostart/app.sh","flask"]