Renovate[BOT]
c455dcb893
All checks were successful
Build Image / Build Image (push) Successful in 43s
24 lines
988 B
Docker
24 lines
988 B
Docker
FROM ghcr.io/renovatebot/renovate:full@sha256:c8edb0571b65410dbaa76a0967927193288cab0a01367f0e594213a34f407454
|
|
|
|
# Changes to the certificate authority require root permissions
|
|
USER root
|
|
|
|
# Copy and install the self signed certificate
|
|
ADD https://spm-ca.pages.dev/assets/spm-root.crt /usr/local/share/ca-certificates/spm-root.crt
|
|
RUN update-ca-certificates && \
|
|
cp /usr/local/share/ca-certificates/spm-root.crt /spm-root.crt && \
|
|
chown 1000:1000 /spm-root.crt
|
|
|
|
# Change back to the Ubuntu user
|
|
USER 1000
|
|
|
|
# Some tools come with their own certificate authority stores and thus need to trust the self-signed certificate or the entire OS store explicitly.
|
|
# This list is _not_ comprehensive and other tools may require further configuration.
|
|
#
|
|
# Node
|
|
ENV NODE_EXTRA_CA_CERTS=/spm-root.crt
|
|
# Python
|
|
RUN pip config set global.cert /etc/ssl/certs/ca-certificates.crt
|
|
ENV REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
|
|
# OpenSSL
|
|
ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt |