Skip to content

Commit

Permalink
Pull CA certificates from Fedora
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Kitt <[email protected]>
  • Loading branch information
skitt committed Nov 4, 2024
1 parent 8184946 commit 74f0fb5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions package/Dockerfile.lighthouse-coredns
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,15 @@ COPY package/dnf_install /
RUN /dnf_install -a ${TARGETPLATFORM} -v ${FEDORA_VERSION} -r /output/lighthouse-coredns \
setup

FROM --platform=${TARGETPLATFORM} debian:stable-slim AS certificates
FROM --platform=${TARGETPLATFORM} fedora:${FEDORA_VERSION} AS certificates
ARG FEDORA_VERSION
ARG SOURCE
ARG TARGETPLATFORM

RUN apt-get update && apt-get -y install ca-certificates && update-ca-certificates
COPY package/dnf_install /

RUN /dnf_install -a ${TARGETPLATFORM} -v ${FEDORA_VERSION} -r /output/lighthouse-coredns \
ca-certificates

FROM --platform=${TARGETPLATFORM} scratch
ARG SOURCE
Expand Down

0 comments on commit 74f0fb5

Please sign in to comment.