forked from robusta-dev/kubewatch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,15 @@ FROM golang AS builder | |
MAINTAINER "Cuong Manh Le <[email protected]>" | ||
|
||
RUN apt-get update && \ | ||
dpkg --add-architecture arm64 &&\ | ||
apt-get install -y --no-install-recommends build-essential && \ | ||
apt-get clean && \ | ||
mkdir -p "$GOPATH/src/github.com/bitnami-labs/kubewatch" | ||
|
||
ADD . "$GOPATH/src/github.com/bitnami-labs/kubewatch" | ||
|
||
RUN cd "$GOPATH/src/github.com/bitnami-labs/kubewatch" && \ | ||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a --installsuffix cgo --ldflags="-s" -o /kubewatch | ||
CGO_ENABLED=0 GOOS=linux GOARCH=$(dpkg --print-architecture) go build -a --installsuffix cgo --ldflags="-s" -o /kubewatch | ||
|
||
FROM bitnami/minideb:bullseye | ||
RUN install_packages ca-certificates | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
docker buildx build \ | ||
--platform linux/arm64,linux/amd64 \ | ||
--tag $IMAGE \ | ||
--push \ | ||
$BUILD_CONTEXT |