fix(docker): 更换自定义证书下载方式
- 移除通过Alpine包管理器安装证书的方法 - 使用curl直接下载证书文件到指定目录 - 运行update-ca-certificates更新系统证书 - 避免了使用有问题的Alpine证书包
This commit is contained in:
@@ -29,11 +29,7 @@ RUN apk update && \
|
||||
# Clean up
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
# Download custom certificates
|
||||
RUN wget "https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/ca-certificates-20241121-r1.apk" && \
|
||||
apk add ./ca-certificates-20241121-r1.apk && \
|
||||
rm ca-certificates-20241121-r1.apk
|
||||
|
||||
# Download custom certificates (skip problematic Alpine package, use curl instead)
|
||||
RUN curl -fsSL -o /usr/local/share/ca-certificates/aaa-certificate-services.crt https://www.tbs-x509.com/Comodo_AAA_Certificate_Services.crt && \
|
||||
update-ca-certificates
|
||||
|
||||
|
||||
Reference in New Issue
Block a user