Skip to content

Commit 73f3698

Browse files
authored
Fix Docker image (stripe#440)
1 parent 482a6a0 commit 73f3698

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

.goreleaser.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ builds:
2424
- -s -w -X github.com/stripe/stripe-cli/pkg/version.Version={{.Version}}
2525
binary: stripe
2626
env:
27-
- CGO_ENABLED=1
27+
- CGO_ENABLED=0
2828
main: ./cmd/stripe/main.go
2929
goos:
3030
- linux
@@ -67,6 +67,8 @@ changelog:
6767
- '^test:'
6868
nfpms:
6969
-
70+
builds:
71+
- stripe-linux-amd64
7072
vendor: Stripe
7173
homepage: https://stripe.com
7274
maintainer: Stripe <support@stripe.com>
@@ -111,8 +113,20 @@ scoop:
111113
description: Stripe CLI utility
112114
license: Apache 2.0
113115
dockers:
114-
- binaries:
116+
- goos: linux
117+
goarch: amd64
118+
binaries:
115119
- stripe
120+
builds:
121+
- stripe-linux-amd64
116122
image_templates:
117123
- "stripe/stripe-cli:latest"
118124
- "stripe/stripe-cli:{{ .Tag }}"
125+
build_flag_templates:
126+
- "--pull"
127+
- "--label=org.opencontainers.image.created={{.Date}}"
128+
- "--label=org.opencontainers.image.name={{.ProjectName}}"
129+
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
130+
- "--label=org.opencontainers.image.version={{.Version}}"
131+
- "--label=repository=https://github.com/stripe/stripe-cli"
132+
- "--label=homepage=https://stripe.com"

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
FROM alpine
2-
RUN apk add ca-certificates
2+
RUN apk update && apk upgrade && \
3+
apk add --no-cache ca-certificates
34
COPY stripe /bin/stripe
45
ENTRYPOINT ["/bin/stripe"]

0 commit comments

Comments
 (0)