Skip to content

Commit

Permalink
fix up copying trust anchors/ca's into the docker file, only worked a…
Browse files Browse the repository at this point in the history
…ccidentally so far, and only on my system
  • Loading branch information
berthubert committed Apr 16, 2024
1 parent c14c862 commit 5b2b4a1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile.full-build
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@ RUN tar xf /src/build/meson-dist/simplomon-*.tar.xz && mv simplomon-*/* .
RUN LDFLAGS=-static meson setup build --prefer-static -Dbuildtype=release
RUN meson compile -C build/
RUN strip build/simplomon
RUN tar cvhf certs.tar /etc/ssl/certs/ca-certificates.crt /usr/lib/ssl/openssl.cnf /usr/lib/ssl/certs/*
#RUN tar cvhf certs.tar /etc/ssl/certs/ca-certificates.crt /usr/lib/ssl/openssl.cnf /usr/lib/ssl/certs/*
FROM scratch
ADD certs.tar /
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /usr/lib/ssl/openssl.cnf /usr/lib/ssl/openssl.cnf
COPY --from=builder /usr/lib/ssl/certs/* /usr/lib/ssl/certs/

COPY --from=builder /project/build/simplomon simplomon
COPY --from=builder /project/html html
VOLUME /config
Expand Down

0 comments on commit 5b2b4a1

Please sign in to comment.