HowToCook icon indicating copy to clipboard operation
HowToCook copied to clipboard

能否提供arm64版本的docker

Open Yastruhank opened this issue 9 months ago • 4 comments

请问能否提供arm64版本的docker,我想在我的arm板子上部署这个,非常感谢

Yastruhank avatar Apr 24 '25 08:04 Yastruhank

有这个计划,正在做。可惜我现在手头没有arm64的机器……还没踩这个坑……

Anduin2017 avatar Apr 24 '25 14:04 Anduin2017

在我的树莓派4B上尝试运行的结果如下,供参考。(虽然只是警告但实际上会运行失败退出)

$ docker pull ghcr.io/anduin2017/how-to-cook:latest latest: Pulling from anduin2017/how-to-cook f2551cfab4d2: Pull complete d164380718aa: Pull complete 93243487a3a0: Pull complete addaac47f0e7: Pull complete 0cf267162caa: Pull complete 0cf41fd94f42: Pull complete 79986b67de44: Pull complete 25fbfbf72a28: Pull complete faba959d864d: Pull complete d8fb4825853c: Pull complete daf4c8891608: Pull complete Digest: sha256:7d3920195d7ea1813b04eeeab970394ead2cfb8b2689dae49d6740d2767d77e1 Status: Downloaded newer image for ghcr.io/anduin2017/how-to-cook:latest ghcr.io/anduin2017/how-to-cook:latest

$ docker run -d -p 5000:5000 ghcr.io/anduin2017/how-to-cook:latest WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested5109894c893c2e6f4010d10b947e9c39f9ff76368a0106a0b9baf0cf21cd5f94

slipperstree avatar Apr 28 '25 01:04 slipperstree

#1589 Awaiting merging

Austin-152 avatar May 15 '25 10:05 Austin-152

用nginx启动试试,把Dockerfile最后一个阶段改为

FROM nginx:latest
COPY --from=python-env /app/site /usr/share/nginx/html/cook
COPY howtocook.conf /etc/nginx/conf.d

EXPOSE 5000

CMD [ "nginx","-g","daemon off;" ]

nginx配置文件参考

server {
  listen 5000;
  server_name localhost;

  location / {
    root /usr/share/nginx/html/cook;
    index index.html index.htm;
    try_files $uri $uri/ $uri/index.html /index.html;
  }
}

VamoBao avatar May 22 '25 02:05 VamoBao