Skip to content

Commit

Permalink
fix: remove binary argument in Dockerfile (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigua-cs committed Nov 29, 2022
1 parent 1f52128 commit 637b1f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,20 @@ dockers:
- "contentsquareplatform/chproxy:{{ .Tag }}-amd64"
use: buildx
build_flag_templates:
- "--build-arg=BINARY=chproxy"
- "--platform=linux/amd64"
- goos: linux
goarch: arm64
image_templates:
- "contentsquareplatform/chproxy:{{ .Tag }}-arm64"
use: buildx
build_flag_templates:
- "--build-arg=BINARY=chproxy"
- "--platform=linux/arm64"
- goos: linux
goarch: arm64
image_templates:
- "contentsquareplatform/chproxy:{{ .Tag }}-arm64v8"
use: buildx
build_flag_templates:
- "--build-arg=BINARY=chproxy"
- "--platform=linux/arm64/v8"

snapshot:
Expand Down
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
FROM debian

ARG BINARY

COPY ${BINARY} /
COPY chproxy /

EXPOSE 9090

ENTRYPOINT ["/${BINARY}"]
ENTRYPOINT ["/chproxy"]
CMD [ "--help" ]

0 comments on commit 637b1f7

Please sign in to comment.