commit | 6f4a348463c90e56d2dfb86ac55952b4c5355c42 | [log] [tgz] |
---|---|---|
author | Akron <nils@diewald-online.de> | Mon Nov 27 19:48:22 2023 +0100 |
committer | Akron <nils@diewald-online.de> | Mon Nov 27 19:48:22 2023 +0100 |
tree | cc02491b031ea9ad12ee6965ce9aeff4eddb9040 | |
parent | d1eead69ae78d0cb93f65780189b182606e0451c [diff] |
Build static in dockerfile Change-Id: I2b16196ab0a4aa96227418596888cd1745e06367
diff --git a/Dockerfile b/Dockerfile index 54afae3..888f40e 100644 --- a/Dockerfile +++ b/Dockerfile
@@ -12,7 +12,9 @@ RUN go test . -RUN go build -o /src/kalamar-plugin-externalresources . +RUN STATIC="-extldflags '-static'" \ + STATICENV="CGO_ENABLED=0 GOOS=linux GOARCH=amd64" \ + go build -o /src/kalamar-plugin-externalresources . # Main stage FROM busybox:glibc