Skip to content

Commit 1cc48a4

Browse files
authored
Merge pull request #41 from davidz627/fix/DeployImageCA
Changed base image to audited Debian Base
2 parents 53270e2 + 57d69bc commit 1cc48a4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Dockerfile

+7-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@
1515
FROM golang:1.10.1-alpine3.7 as builder
1616
WORKDIR /go/src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver
1717
ADD . .
18-
RUN CGO_ENABLED=0 go build -a -ldflags '-extldflags "-static"' -o bin/gce-pd-csi-driver ./cmd/
18+
RUN CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' -o bin/gce-pd-csi-driver ./cmd/
1919

20-
FROM alpine:3.7
20+
# Start from Google Debian base
21+
FROM gcr.io/google-containers/debian-base-amd64:0.3
2122
COPY --from=builder /go/src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/bin/gce-pd-csi-driver /gce-pd-csi-driver
2223

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

Comments
 (0)