Skip to content

Commit 637b1f7

Browse files
authored
fix: remove binary argument in Dockerfile (#274)
1 parent 1f52128 commit 637b1f7

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.goreleaser.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,20 @@ dockers:
3434
- "contentsquareplatform/chproxy:{{ .Tag }}-amd64"
3535
use: buildx
3636
build_flag_templates:
37-
- "--build-arg=BINARY=chproxy"
37+
- "--platform=linux/amd64"
3838
- goos: linux
3939
goarch: arm64
4040
image_templates:
4141
- "contentsquareplatform/chproxy:{{ .Tag }}-arm64"
4242
use: buildx
4343
build_flag_templates:
44-
- "--build-arg=BINARY=chproxy"
4544
- "--platform=linux/arm64"
4645
- goos: linux
4746
goarch: arm64
4847
image_templates:
4948
- "contentsquareplatform/chproxy:{{ .Tag }}-arm64v8"
5049
use: buildx
5150
build_flag_templates:
52-
- "--build-arg=BINARY=chproxy"
5351
- "--platform=linux/arm64/v8"
5452

5553
snapshot:

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
FROM debian
22

3-
ARG BINARY
4-
5-
COPY ${BINARY} /
3+
COPY chproxy /
64

75
EXPOSE 9090
86

9-
ENTRYPOINT ["/${BINARY}"]
7+
ENTRYPOINT ["/chproxy"]
108
CMD [ "--help" ]

0 commit comments

Comments
 (0)