Skip to content

Commit d6324fb

Browse files
authored
Merge pull request #31 from geckofu/credential-process-support
Use amazonlinux as docker build base image
2 parents 5cca999 + 8ec8aa6 commit d6324fb

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
FROM amazonlinux:2 as certs
2-
3-
FROM scratch
4-
# Add certificates to this scratch image so that we can make calls to the AWS APIs
5-
COPY --from=certs /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
1+
# Use amazonlinux as the base image so that:
2+
# - we have certificates to make calls to the AWS APIs (/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem)
3+
# - it provides 'sh' excutable that is required by aws-sdk-go credential_process
4+
FROM amazonlinux:2
65

76
COPY ["LICENSE", "NOTICE", "THIRD-PARTY", "/"]
87

0 commit comments

Comments
 (0)