Skip to content

能否提供arm64版本的docker #1553

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Yastruhank opened this issue Apr 24, 2025 · 4 comments
Open

能否提供arm64版本的docker #1553

Yastruhank opened this issue Apr 24, 2025 · 4 comments

Comments

@Yastruhank
Copy link

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

@Anduin2017
Copy link
Owner

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

@slipperstree
Copy link

slipperstree commented Apr 28, 2025

在我的树莓派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

@Austin-152
Copy link

#1589 Awaiting merging

@VamoBao
Copy link

VamoBao commented May 22, 2025

用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;
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants