Skip to content

Commit d7c3203

Browse files
committed
Install dependencies
1 parent 9fb13b2 commit d7c3203

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
@@ -21,7 +21,11 @@ WORKDIR /go/src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver
2121
ADD . .
2222
RUN GOARCH=$(echo $TARGETPLATFORM | cut -f2 -d '/') GCE_PD_CSI_STAGING_VERSION=$STAGINGVERSION make gce-pd-driver
2323

24-
FROM gke.gcr.io/debian-base:bookworm-v1.0.2-gke.2@sha256:1e4d9fa20ba4b3372f2c2f8676823f25c63e1ba7c09ed17933a19b054b97b795 AS debian
24+
# Start from Kubernetes Debian base.
25+
26+
FROM gke.gcr.io/debian-base:bookworm-v1.0.2-gke.2 as debian
27+
28+
RUN clean-install util-linux e2fsprogs mount ca-certificates udev xfsprogs nvme-cli xxd bash
2529
ARG PKGS="util-linux e2fsprogs mount ca-certificates udev xfsprogs nvme-cli xxd bash"
2630
RUN cd /tmp \
2731
&& apt-get update \
@@ -48,9 +52,9 @@ ENV LIB_DIR_PREFIX aarch64
4852

4953
FROM distroless-$TARGETARCH as output-image
5054

51-
# Update the bas image for debian
55+
# Update the base image for debian
5256
COPY --from=debian ["/dpkg/", "/"]
53-
57+
COPY --from=debian /bin/bash /bin/bash
5458

5559
# Copy necessary dependencies into distroless base.
5660
COPY --from=builder /go/src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/bin/gce-pd-csi-driver /gce-pd-csi-driver

0 commit comments

Comments
 (0)