We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9af6079 commit 57d69bcCopy full SHA for 57d69bc
Dockerfile
@@ -15,9 +15,13 @@
15
FROM golang:1.10.1-alpine3.7 as builder
16
WORKDIR /go/src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver
17
ADD . .
18
-RUN CGO_ENABLED=0 go build -a -ldflags '-extldflags "-static"' -o bin/gce-pd-csi-driver ./cmd/
+RUN CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' -o bin/gce-pd-csi-driver ./cmd/
19
20
-FROM alpine:3.7
+# Start from Google Debian base
21
+FROM gcr.io/google-containers/debian-base-amd64:0.3
22
COPY --from=builder /go/src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/bin/gce-pd-csi-driver /gce-pd-csi-driver
23
-ENTRYPOINT ["/gce-pd-csi-driver"]
24
+# Install necessary dependencies
25
+RUN clean-install util-linux e2fsprogs mount ca-certificates
26
+
27
+ENTRYPOINT ["/gce-pd-csi-driver"]
0 commit comments