能否提供arm64版本的docker
请问能否提供arm64版本的docker,我想在我的arm板子上部署这个,非常感谢
有这个计划,正在做。可惜我现在手头没有arm64的机器……还没踩这个坑……
在我的树莓派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
#1589 Awaiting merging
用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;
}
}