Skip to content

Commit ead17cd

Browse files
committed
chore: Added GOOS=linux GOARCH=amd64 to Dockerfiles
1 parent cfb3b31 commit ead17cd

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

backend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ FROM golang:1.21.7-bookworm as builder
1717
RUN apt-get update && apt-get install -y cmake clang musl-dev openssl
1818
WORKDIR /go/src/github.com/kubeflow/pipelines
1919
COPY . .
20-
RUN GO111MODULE=on go build -o /bin/apiserver backend/src/apiserver/*.go
20+
RUN GO111MODULE=on GOOS=linux GOARCH=amd64 go build -o /bin/apiserver backend/src/apiserver/*.go
2121
# Check licenses and comply with license terms.
2222
RUN ./hack/install-go-licenses.sh
2323
# First, make sure there's no forbidden license.

backend/Dockerfile.cacheserver

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RUN apk update && apk upgrade && \
2121
WORKDIR /go/src/github.com/kubeflow/pipelines
2222
COPY . .
2323

24-
RUN GO111MODULE=on go build -o /bin/cache_server backend/src/cache/*.go
24+
RUN GO111MODULE=on GOOS=linux GOARCH=amd64 go build -o /bin/cache_server backend/src/cache/*.go
2525

2626
# Check licenses and comply with license terms.
2727
RUN ./hack/install-go-licenses.sh

backend/Dockerfile.persistenceagent

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ COPY . .
2121
RUN apk update && apk upgrade && \
2222
apk add --no-cache bash git openssh gcc musl-dev
2323

24-
RUN GO111MODULE=on go build -o /bin/persistence_agent backend/src/agent/persistence/*.go
24+
RUN GO111MODULE=on GOOS=linux GOARCH=amd64 go build -o /bin/persistence_agent backend/src/agent/persistence/*.go
2525
# Check licenses and comply with license terms.
2626
RUN ./hack/install-go-licenses.sh
2727
# First, make sure there's no forbidden license.

backend/Dockerfile.scheduledworkflow

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ COPY . .
2121
RUN apk update && apk upgrade && \
2222
apk add --no-cache bash git openssh gcc musl-dev
2323

24-
RUN GO111MODULE=on go build -o /bin/controller backend/src/crd/controller/scheduledworkflow/*.go
24+
RUN GO111MODULE=on GOOS=linux GOARCH=amd64 go build -o /bin/controller backend/src/crd/controller/scheduledworkflow/*.go
2525
# Check licenses and comply with license terms.
2626
RUN ./hack/install-go-licenses.sh
2727
# First, make sure there's no forbidden license.

backend/Dockerfile.viewercontroller

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN apk add --no-cache git gcc musl-dev
2020
WORKDIR /src/github.com/kubeflow/pipelines
2121
COPY . .
2222

23-
RUN GO111MODULE=on go build -o /bin/controller backend/src/crd/controller/viewer/*.go
23+
RUN GO111MODULE=on GOOS=linux GOARCH=amd64 go build -o /bin/controller backend/src/crd/controller/viewer/*.go
2424
# Check licenses and comply with license terms.
2525
RUN ./hack/install-go-licenses.sh
2626
# First, make sure there's no forbidden license.

0 commit comments

Comments
 (0)