From ac8204a177c74950ac674765f33169fb212d1523 Mon Sep 17 00:00:00 2001 From: Ashish Tiwari Date: Mon, 12 Sep 2022 17:28:29 +0530 Subject: [PATCH] Remove amd hardcoding Signed-off-by: Ashish Tiwari --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e6e3efec..3df21ec8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,13 +12,12 @@ RUN go mod download # Copy the go source COPY . . # Build -RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -ldflags="-w -s -X main.version=$GIT_VERSION -X main.commitsha=$GIT_COMMITSHA" -a -o meshery-meshsync main.go +RUN CGO_ENABLED=0 GO111MODULE=on go build -ldflags="-w -s -X main.version=$GIT_VERSION -X main.commitsha=$GIT_COMMITSHA" -a -o meshery-meshsync main.go # Use distroless as minimal base image to package the manager binary # Refer to https://github.com/GoogleContainerTools/distroless for more details FROM gcr.io/distroless/base-debian10 WORKDIR / ENV GODISTRO="debian" -ENV GOARCH="amd64" COPY --from=builder /build/meshery-meshsync . ENTRYPOINT ["/meshery-meshsync"]