Skip to content

Commit

Permalink
chore: uses CGO_ENABLED=0 to avoid dynamic linking.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcchavezs committed May 29, 2024
1 parent 403210e commit 7eba34f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions extauthz/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
FROM scratch

COPY build/envoy-extauthz /envoy-extauthz
COPY build/envoy-extauthz-linux /envoy-extauthz

EXPOSE 9002

RUN ls -la

ENTRYPOINT ["/envoy-extauthz"]
2 changes: 1 addition & 1 deletion extauthz/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ test:
.PHONY: build
build:
@mkdir -p ./build
@GOOS=linux go build -o ./build/envoy-extauthz ./cmd/extauthz/main.go
@GOOS=linux CGO_ENABLED=0 go build -o ./build/envoy-extauthz-linux ./cmd/extauthz/main.go

.PHONY: docker
docker: build
Expand Down

0 comments on commit 7eba34f

Please sign in to comment.