Skip to content

Commit 403ed6d

Browse files
committed
config: Exclude doc/man/info to reduce docker image size
Signed-off-by: Denys Fedoryshchenko <[email protected]>
1 parent 63dc9ca commit 403ed6d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

config/docker/base/debian.jinja2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ FROM mirror.gcr.io/debian:trixie
1010
MAINTAINER "KernelCI TSC" <kernelci-tsc@groups.io>
1111
ENV DEBIAN_FRONTEND=noninteractive
1212

13+
# Exclude doc and man files to reduce image size
14+
RUN echo 'path-exclude=/usr/share/doc/*' > /etc/dpkg/dpkg.cfg.d/excludes && \
15+
echo 'path-exclude=/usr/share/man/*' >> /etc/dpkg/dpkg.cfg.d/excludes && \
16+
echo 'path-exclude=/usr/share/info/*' >> /etc/dpkg/dpkg.cfg.d/excludes
17+
1318
{%- block multistage %}{% endblock %}
1419

1520
# Docker for jenkins really needs procps otherwise the jenkins side fails

0 commit comments

Comments
 (0)