forked from getsops/sops
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release: configure build of Docker images
GoReleaser requires specifically crafted Dockerfiles as the build context is dynamically constructed. For more information, refer to https://goreleaser.com/errors/docker-build/#do and other documentation around Docker image templates and manifests. Signed-off-by: Hidde Beydals <[email protected]>
- Loading branch information
Showing
3 changed files
with
120 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM debian:bookworm-slim | ||
|
||
RUN apt-get update && apt-get install --no-install-recommends -y \ | ||
awscli \ | ||
azure-cli \ | ||
curl \ | ||
gnupg \ | ||
vim \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ENV EDITOR vim | ||
|
||
# Glob pattern to match the binary for the current architecture | ||
COPY sops* /usr/local/bin/sops | ||
|
||
ENTRYPOINT ["sops"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM alpine:3.18 | ||
|
||
RUN apk --no-cache add \ | ||
ca-certificates \ | ||
vim \ | ||
&& update-ca-certificates | ||
|
||
ENV EDITOR vim | ||
|
||
# Glob pattern to match the binary for the current architecture | ||
COPY sops* /usr/local/bin/sops | ||
|
||
ENTRYPOINT ["sops"] |