Skip to content

Commit

Permalink
Statically Build (#8)
Browse files Browse the repository at this point in the history
* current docker image not working, attempting to resolve

* build statically
  • Loading branch information
ekristen authored Dec 16, 2021
1 parent 57ebc9c commit b812517
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ release:
- glob: ./cosign.pub
builds:
- id: default
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
Expand All @@ -26,6 +28,7 @@ builds:
goarch: arm
ldflags:
- -s
- -w
- -X '{{ .ModulePath }}/cmd.BuildVersion={{ .Version }}'
- -X '{{ .ModulePath }}/cmd.BuildDate={{ .Date }}'
- -X '{{ .ModulePath }}/cmd.BuildHash={{ .Commit }}'
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.goreleaser
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

FROM alpine:3.14.3
ENTRYPOINT ["/usr/local/bin/aws-nuke"]
RUN apk add --no-cache ca-certificates
RUN apk add --no-cache ca-certificates
RUN adduser -D aws-nuke

COPY aws-nuke /usr/local/bin/aws-nuke
Expand Down

0 comments on commit b812517

Please sign in to comment.