Skip to content

Commit e4be83a

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

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

30+
RUN echo "path-exclude /usr/share/man/*" > /etc/dpkg/dpkg.cfg.d/01_nodoc
3031
RUN apt-get update --fix-missing && apt-get --yes install libsystemd-dev gcc-aarch64-linux-gnu
3132
RUN go version
3233

@@ -38,6 +39,7 @@ FROM registry.k8s.io/build-image/debian-base:bookworm-v1.0.5@sha256:dd9c1f36c33b
3839

3940
LABEL maintainer="Random Liu <[email protected]>"
4041

42+
RUN echo "path-exclude /usr/share/man/*" > /etc/dpkg/dpkg.cfg.d/01_nodoc
4143
RUN clean-install util-linux bash libsystemd-dev
4244

4345
# Avoid symlink of /etc/localtime.

0 commit comments

Comments
 (0)