@@ -27,6 +27,13 @@ ARG TARGETARCH
27
27
ENV GOPATH=/gopath/
28
28
ENV PATH=$GOPATH/bin:$PATH
29
29
30
+ # Prevent various dpkg warnings about missing files, such as man pages.
31
+ RUN echo "path-exclude /usr/share/doc/*" > /etc/dpkg/dpkg.cfg.d/01_nodoc && \
32
+ echo "path-exclude /usr/share/man/*" >> /etc/dpkg/dpkg.cfg.d/01_nodoc && \
33
+ echo "path-exclude /usr/share/groff/*" >> /etc/dpkg/dpkg.cfg.d/01_nodoc && \
34
+ echo "path-exclude /usr/share/info/*" >> /etc/dpkg/dpkg.cfg.d/01_nodoc && \
35
+ echo "path-exclude /usr/share/lintian/*" >> /etc/dpkg/dpkg.cfg.d/01_nodoc && \
36
+ echo "path-exclude /usr/share/linda/*" >> /etc/dpkg/dpkg.cfg.d/01_nodoc
30
37
RUN apt-get update --fix-missing && apt-get --yes install libsystemd-dev gcc-aarch64-linux-gnu
31
38
RUN go version
32
39
@@ -38,6 +45,13 @@ FROM registry.k8s.io/build-image/debian-base:bookworm-v1.0.5@sha256:dd9c1f36c33b
38
45
39
46
LABEL maintainer=
"Random Liu <[email protected] >"
40
47
48
+ # Prevent various dpkg warnings about missing files, such as man pages.
49
+ RUN echo "path-exclude /usr/share/doc/*" > /etc/dpkg/dpkg.cfg.d/01_nodoc && \
50
+ echo "path-exclude /usr/share/man/*" >> /etc/dpkg/dpkg.cfg.d/01_nodoc && \
51
+ echo "path-exclude /usr/share/groff/*" >> /etc/dpkg/dpkg.cfg.d/01_nodoc && \
52
+ echo "path-exclude /usr/share/info/*" >> /etc/dpkg/dpkg.cfg.d/01_nodoc && \
53
+ echo "path-exclude /usr/share/lintian/*" >> /etc/dpkg/dpkg.cfg.d/01_nodoc && \
54
+ echo "path-exclude /usr/share/linda/*" >> /etc/dpkg/dpkg.cfg.d/01_nodoc
41
55
RUN clean-install util-linux bash libsystemd-dev
42
56
43
57
# Avoid symlink of /etc/localtime.
0 commit comments