From 6e1a234d1556d608a24e50c85e5d4d4df8f6b988 Mon Sep 17 00:00:00 2001 From: Vitor Oliveira <80420508+vitorstone@users.noreply.github.com> Date: Wed, 1 Nov 2023 15:10:14 -0400 Subject: [PATCH] feat(certificates): add support for custom CA certificates (#880) This change facilitates users working behind corporate firewalls or proxies. By allowing the integration of custom CA certificates, users can handle SSL connections that are intercepted by company infrastructure. --- Dockerfile | 3 +++ custom-ca-certs/.keep | 0 2 files changed, 3 insertions(+) create mode 100644 custom-ca-certs/.keep diff --git a/Dockerfile b/Dockerfile index 21e6eddf..994a7ffe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,6 +22,9 @@ RUN apt-get update && \ apt-get install -y ca-certificates curl patch pip cmake && apt-get clean +COPY --chmod=644 custom-ca-certs/* /usr/local/share/ca-certificates/ +RUN update-ca-certificates + # Use the variables in subsequent instructions RUN echo "Target Architecture: $TARGETARCH" RUN echo "Target Variant: $TARGETVARIANT" diff --git a/custom-ca-certs/.keep b/custom-ca-certs/.keep new file mode 100644 index 00000000..e69de29b