chore: add ca-certs from alpine image

This commit is contained in:
Bastien Riviere 2023-09-01 23:01:45 +02:00
parent 63b5b254c2
commit d63da674fd
Signed by: babariviere
GPG key ID: 4E5F0839249F162E

View file

@ -1,8 +1,8 @@
FROM debian:bookworm-slim
RUN set -x && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
ca-certificates && \
rm -rf /var/lib/apt/lists/*
FROM alpine:3.18 as alpine
RUN apk add -U --no-cache ca-certificates
FROM scratch
WORKDIR /app
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY ntfy-bridge /app/ntfy-bridge
ENTRYPOINT ["/app/ntfy-bridge"]