From a21a33f8355ccfc4a7e986e8235c71e7fe490160 Mon Sep 17 00:00:00 2001 From: Jay Carlson Date: Fri, 1 Apr 2022 17:54:58 -0700 Subject: [PATCH] Docker: add ca-certificates to runtime Current Alpine doesn't ship with the "well-known" CA certificates. Without them present, outbound HTTPS or TLS connections aren't even initiated, leading to this at startup: ``` fetching token failed: No SSL/TLS CA certificates found. ``` This adds `ca-certificates` to the runtime image. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 29e5d4e..20fa343 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ RUN nimble build -d:danger -d:lto -d:strip \ FROM alpine:latest WORKDIR /src/ -RUN apk --no-cache add pcre +RUN apk --no-cache add pcre ca-certificates COPY --from=nim /src/nitter/nitter ./ COPY --from=nim /src/nitter/nitter.example.conf ./nitter.conf COPY --from=nim /src/nitter/public ./public