From e7bbb21b179591ada309c83d8741431ef30b6ec0 Mon Sep 17 00:00:00 2001 From: vitorstone Date: Wed, 9 Aug 2023 16:52:31 -0400 Subject: [PATCH] feat(certificates): add support for custom CA certificates 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 d53186f1f728..5278561efeff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,9 @@ ARG GO_TAGS="stablediffusion tts" RUN apt-get update && \ apt-get install -y ca-certificates cmake curl patch pip +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 000000000000..e69de29bb2d1