Replies: 1 comment 4 replies
|
目前 alpine edge 还是 openssl 3.5.6,升到4.0有什么优势吗? alpine 底包的 Dockerfile 可以参考 https://github.com/PikuZheng/smartdns/blob/master/Dockerfile.alpine |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
参考Dockerfile编译,我不是程序员可能会有常识性错误。
OPENSSL_OPTIONS中,no-engine no-ssl no-ssl3三个选项已经过时可删;-Os应该是体积最小的意思,可是如果体积最小不应该用alpine作为基础镜像用musl编译,但是Dockerfile里似乎是glibc编译,我换成了-O3,不是很懂。编译smartdns前,添加
export LIBRARY_PATH="/opt/build/lib:/opt/build/lib64",否则编译到最后会报错cp: cannot stat 'libssl.so.4': No such file or directory。src/dns_client/client_tls.c文件中,有dns->data的行(802-804行)全部报错:改为
另外还有6个过时提醒,由于不影响编译,我就没管。
All reactions