Skip to content

Commit a73de84

Browse files
committed
add certs to scratch images
Signed-off-by: Karl Piplies <[email protected]>
1 parent ddb84a7 commit a73de84

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*.so
1010
*.dylib
1111
*.DS_Store
12+
/disclosure-cli
1213

1314
# Test binary, built with `go test -c`
1415
*.test
@@ -24,4 +25,5 @@ config-int.yml
2425
.vscode
2526
# Dependency directories (remove the comment below to include it)
2627
# vendor/
27-
.idea/
28+
.idea/
29+

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ RUN CGO_ENABLED=0 go build -o disclosure-cli
1515
FROM scratch
1616
WORKDIR /
1717
COPY --from=builder /cli/disclosure-cli .
18+
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
1819
ENTRYPOINT ["/disclosure-cli"]

Dockerfile.goreleaser

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# SPDX-FileCopyrightText: 2023 Mercedes-Benz Tech Innovation GmbH
22
#
33
# SPDX-License-Identifier: MIT
4+
FROM golang:1.22-alpine as builder
45

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

0 commit comments

Comments
 (0)