Download Let's Encrypt CA-Certificates
This commit is contained in:
parent
8c13a92fa3
commit
23651e0e2e
2 changed files with 117 additions and 0 deletions
|
|
@ -1,3 +1,9 @@
|
|||
FROM docker.io/library/python:3.11-alpine AS cabuilder
|
||||
RUN apk add --no-cache ca-certificates
|
||||
ADD bin/fetch_letsencrypt_ca_certs.py /usr/local/bin/fetch_letsencrypt_ca_certs.py
|
||||
RUN /usr/local/bin/fetch_letsencrypt_ca_certs.py /usr/local/share/ca-certificates/
|
||||
RUN update-ca-certificates
|
||||
|
||||
FROM docker.io/library/python:3.11-alpine
|
||||
|
||||
RUN apk --no-cache add sshpass openssh-client lftp nodejs npm; mkdir -p /opt/app
|
||||
|
|
@ -5,9 +11,11 @@ WORKDIR /opt/app
|
|||
ADD requirements.txt /root/
|
||||
ADD Dockerfile /root/
|
||||
ADD bin/*.sh /usr/local/bin/
|
||||
COPY --from=cabuilder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||
|
||||
# ignore "Running pip as root" warning
|
||||
ENV PIP_ROOT_USER_ACTION=ignore
|
||||
ENV REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
|
||||
|
||||
RUN chmod 755 /usr/local/bin/*.sh && pip install -r /root/requirements.txt && pip freeze && rm -Rf "$(pip cache dir)"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue