Skip to content

Commit c1232bd

Browse files
authored
Merge pull request #138 from cofyc/fix-binary-arch
fix docker build arguments
2 parents 743ac14 + 299f1a8 commit c1232bd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

deployment/docker/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,21 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
ARG OS=linux
1615
ARG ARCH=amd64
1716
ARG GOVERSION=1.11.1
1817
FROM golang:$GOVERSION-alpine as builder
18+
ARG OS=linux
19+
ARG ARCH=amd64
1920
WORKDIR /go/src/sigs.k8s.io/sig-storage-local-static-provisioner
2021
ADD . .
22+
RUN echo "OS: $OS ARCH: $ARCH"
2123
RUN CGO_ENABLED=0 GOOS=${OS} GOARCH=${ARCH} go build -a -ldflags '-extldflags "-static"' -o _output/${OS}/${ARCH}/local-volume-provisioner ./cmd/local-volume-provisioner
2224

2325
# For security, we use kubernetes community maintained debian base image.
2426
# https://github.com/kubernetes/kubernetes/blob/master/build/debian-base/
2527
FROM k8s.gcr.io/debian-base-${ARCH}:0.4.1
28+
ARG OS=linux
29+
ARG ARCH=amd64
2630

2731
# Keep packages up to date and install packages for our needs.
2832
RUN apt-get update \

0 commit comments

Comments
 (0)