Skip to content

Commit 940d6f0

Browse files
Fix: Suppress dpkg warnings in Docker build
1 parent 6cffddb commit 940d6f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ ARG TARGETARCH
2727
ENV GOPATH=/gopath/
2828
ENV PATH=$GOPATH/bin:$PATH
2929

30+
# Pre-create directories to avoid warnings from update-alternatives.
31+
RUN mkdir -p /usr/share/man/man1 /usr/share/man/man7
3032
RUN apt-get update --fix-missing && apt-get --yes install libsystemd-dev gcc-aarch64-linux-gnu
3133
RUN go version
3234

@@ -38,6 +40,8 @@ FROM registry.k8s.io/build-image/debian-base:bookworm-v1.0.5@sha256:dd9c1f36c33b
3840

3941
LABEL maintainer="Random Liu <[email protected]>"
4042

43+
# Pre-create directories to avoid warnings from update-alternatives.
44+
RUN mkdir -p /usr/share/man/man1 /usr/share/man/man7
4145
RUN clean-install util-linux bash libsystemd-dev
4246

4347
# Avoid symlink of /etc/localtime.

0 commit comments

Comments
 (0)