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.
This commit is contained in:
Jay Carlson 2022-04-01 17:54:58 -07:00
parent 6884f05041
commit a21a33f835
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ RUN nimble build -d:danger -d:lto -d:strip \
FROM alpine:latest FROM alpine:latest
WORKDIR /src/ 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 ./
COPY --from=nim /src/nitter/nitter.example.conf ./nitter.conf COPY --from=nim /src/nitter/nitter.example.conf ./nitter.conf
COPY --from=nim /src/nitter/public ./public COPY --from=nim /src/nitter/public ./public