Skip to content

Commit

Permalink
chore: fix ca cert for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
allthatjazzleo committed Oct 28, 2024
1 parent dbb8df3 commit f8c4fe0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,16 @@ RUN set -eux;\
CGO_LDFLAGS="-L/rocksdb -L/usr/lib -L/lib -lrocksdb -lstdc++ -lm -lz -lbz2 -lsnappy -llz4 -lzstd";\
go build -tags 'rocksdb pebbledb' -ldflags "$LDFLAGS" -a -o snapshot .


# Use alpine to source the latest CA certificates
FROM alpine:3 as alpine-3

# Build final image from scratch
FROM scratch

# Install trusted CA certificates
COPY --from=alpine-3 /etc/ssl/cert.pem /etc/ssl/cert.pem

WORKDIR /
USER 1025:1025
COPY --from=builder --chown=1025:1025 /workspace/snapshot .
Expand Down

0 comments on commit f8c4fe0

Please sign in to comment.