Skip to content

Commit

Permalink
chore: update Dockerfile archs
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie authored Nov 26, 2024
1 parent 2d9ea90 commit 515bf73
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
4 changes: 4 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ dockers:
goarch: amd64
build_flag_templates:
- --platform=linux/amd64
- --BINARY=accounts-linux-amd64
- --label=org.opencontainers.image.title={{ .ProjectName }}-accounts
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/zeiss/{{ .ProjectName }}/typhoon/accounts
Expand All @@ -79,6 +80,7 @@ dockers:
goarch: arm64
build_flag_templates:
- --platform=linux/arm64
- --BINARY=accounts-linux-arm64
- --label=org.opencontainers.image.title={{ .ProjectName }}-accounts
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/zeiss/{{ .ProjectName }}/typhoon/accounts
Expand All @@ -96,6 +98,7 @@ dockers:
goarch: amd64
build_flag_templates:
- --platform=linux/amd64
- --BINARY=web-linux-amd64
- --label=org.opencontainers.image.title={{ .ProjectName }}-web
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/zeiss/{{ .ProjectName }}/typhoon/web
Expand All @@ -113,6 +116,7 @@ dockers:
goarch: arm64
build_flag_templates:
- --platform=linux/arm64
- --BINARY=web-linux-arm64
- --label=org.opencontainers.image.title={{ .ProjectName }}-web
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/zeiss/{{ .ProjectName }}/typhoon/web
Expand Down
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM gcr.io/distroless/static:nonroot
ARG BINARY

WORKDIR /
COPY ${BINARY} /main

USER 65532:65532

ENTRYPOINT ["/main"]
7 changes: 0 additions & 7 deletions Dockerfile.accounts

This file was deleted.

7 changes: 0 additions & 7 deletions Dockerfile.web

This file was deleted.

0 comments on commit 515bf73

Please sign in to comment.