Skip to content

Commit

Permalink
add certs to scratch images
Browse files Browse the repository at this point in the history
Signed-off-by: Karl Piplies <[email protected]>
  • Loading branch information
karlpip committed Oct 16, 2024
1 parent ddb84a7 commit ee4251a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*.so
*.dylib
*.DS_Store
/disclosure-cli

# Test binary, built with `go test -c`
*.test
Expand All @@ -24,4 +25,5 @@ config-int.yml
.vscode
# Dependency directories (remove the comment below to include it)
# vendor/
.idea/
.idea/

1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ RUN CGO_ENABLED=0 go build -o disclosure-cli
FROM scratch
WORKDIR /
COPY --from=builder /cli/disclosure-cli .
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
ENTRYPOINT ["/disclosure-cli"]
2 changes: 2 additions & 0 deletions Dockerfile.goreleaser
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# SPDX-FileCopyrightText: 2023 Mercedes-Benz Tech Innovation GmbH
#
# SPDX-License-Identifier: MIT
FROM golang:1.22-alpine as builder

FROM scratch
COPY disclosure-cli /usr/bin/disclosure-cli
COPY Third_Party_Notices.txt Third_Party_Notices.txt
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
ENTRYPOINT ["/usr/bin/disclosure-cli"]

0 comments on commit ee4251a

Please sign in to comment.