Skip to content

Commit 6baac05

Browse files
dharmeshkakadialiyinan926
authored andcommitted
Platform agnostics operator binary with static compiling
This will allow the operator to be used with spark images that differs from the operator image (alpine).
1 parent 9f92e25 commit 6baac05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ WORKDIR ${GOPATH}/src/k8s.io/spark-on-k8s-operator
2424
COPY Gopkg.toml Gopkg.lock ./
2525
RUN dep ensure -vendor-only
2626
COPY . ./
27-
RUN go generate && go build -o /usr/bin/spark-operator
27+
RUN go generate && CGO_ENABLED=0 GOOS=linux go build -o /usr/bin/spark-operator
2828

2929

3030
FROM gcr.io/ynli-k8s/spark:v2.3.0

0 commit comments

Comments
 (0)