armv7_dockerfile.txt 932 B

123456789101112131415161718192021
  1. # 基于的基础镜像-在dockerhub找
  2. FROM hjdhnx/drpy:armv7
  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 pip3 install -r requirements.txt && pip3 uninstall quickjs && pip3 install ./whl/quickjs-1.19.2-cp37-cp37m-linux_armv7l.whl
  12. # 设置语言支持中文打印
  13. # ENV LANG C.UTF-8
  14. # ENV LC_ALL C.UTF-8
  15. # docker buildx build --platform linux/arm/v7 -f armv7_dockerfile.txt -t hjdhnx/drpy:armv7-v3.9.0 --push .
  16. # docker run -it -p 5705:5705 -p 9001:9001 --restart=always --name drpy -d hjdhnx/drpy:armv7-v3.9.0
  17. # docker push hjdhnx/drpy:armv7-v3.9.0
  18. # CMD supervisord -c /root/sd/pywork/dr_py/super/flask.conf && /bin/bash
  19. ENTRYPOINT ["/etc/autostart/app.sh","flask"]