Compare commits
1
Commits
next
..
c350411acc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c350411acc |
+9
-9
@@ -137,18 +137,18 @@ RUN mkdir /etc/sysusers.d \
|
|||||||
# them over plain HTTP and checks each one against the archive's signed
|
# them over plain HTTP and checks each one against the archive's signed
|
||||||
# package lists, so no CA certificates are needed.
|
# package lists, so no CA certificates are needed.
|
||||||
#
|
#
|
||||||
# nix-bin depends on xz-utils, whose install links man pages with
|
# The image's dpkg config drops man pages as each package unpacks, so
|
||||||
# update-alternatives. The image's dpkg config drops man pages, so each
|
# xz-utils' install prints an update-alternatives warning for every man-page
|
||||||
# link warns. z-man, read after /etc/dpkg/dpkg.cfg.d/excludes, re-includes
|
# link it cannot make. This side file re-includes them for this install
|
||||||
# the man1 pages for this install alone; the same step deletes them again,
|
# alone; it is named to be read after /etc/dpkg/dpkg.cfg.d/excludes, so it
|
||||||
# so no man page or package is added.
|
# overrides that drop. The man pages and the side file are removed again
|
||||||
RUN echo 'path-include=/usr/share/man/man1/*' > /etc/dpkg/dpkg.cfg.d/z-man \
|
# below, so the image keeps no man pages, and installs built from it still
|
||||||
|
# drop them.
|
||||||
|
RUN echo 'path-include=/usr/share/man/*' > /etc/dpkg/dpkg.cfg.d/z-man \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends \
|
&& DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends \
|
||||||
ca-certificates nix-bin runit \
|
ca-certificates nix-bin runit \
|
||||||
&& rm -rf /var/lib/apt/lists/* /etc/dpkg/dpkg.cfg.d/z-man \
|
&& rm -rf /var/lib/apt/lists/* /usr/share/man /etc/dpkg/dpkg.cfg.d/z-man
|
||||||
&& find /usr/share/man/man1 ! -type d -delete \
|
|
||||||
&& find /etc/alternatives -type l -xtype l -delete
|
|
||||||
|
|
||||||
# Nix run by root expects a group of build users, which nix-bin does not
|
# Nix run by root expects a group of build users, which nix-bin does not
|
||||||
# create; with the setting empty, root's builds run without them.
|
# create; with the setting empty, root's builds run without them.
|
||||||
|
|||||||
Reference in new issue
Block a user