ingress-nginx-helm/images/ubuntu-slim/Dockerfile.build

54 lines
1.4 KiB
Docker
Raw Normal View History

2017-01-31 18:19:58 +00:00
FROM ubuntu:16.04
ENV DEBIAN_FRONTEND=noninteractive
COPY excludes /etc/dpkg/dpkg.cfg.d/excludes
RUN apt-get update \
&& apt-get dist-upgrade -y
2017-02-16 13:27:35 +00:00
# no-op script removes the need for systemd-sysv
2017-01-31 18:19:58 +00:00
COPY runlevel /sbin/runlevel
# hold required packages to avoid breaking the installation of packages
RUN apt-mark hold apt gnupg adduser passwd libsemanage1
# dpkg --get-selections | grep -v deinstall
RUN echo "Yes, do as I say!" | apt-get purge \
2017-02-16 13:27:35 +00:00
e2fslibs \
2017-01-31 18:19:58 +00:00
libcap2-bin \
libkmod2 \
2017-02-16 13:27:35 +00:00
libmount1 \
libncursesw5 \
libprocps4 \
2017-01-31 18:19:58 +00:00
libsmartcols1 \
libudev1 \
2017-02-16 13:27:35 +00:00
ncurses-base \
ncurses-bin \
locales \
2017-01-31 18:19:58 +00:00
tzdata
# cleanup
RUN apt-get autoremove -y && \
apt-get clean -y && \
tar -czf /usr/share/copyrights.tar.gz /usr/share/common-licenses /usr/share/doc/*/copyright && \
rm -rf \
/usr/share/doc \
/usr/share/man \
/usr/share/info \
/usr/share/locale \
/var/lib/apt/lists/* \
/var/log/* \
/var/cache/debconf/* \
/usr/share/common-licenses* \
~/.bashrc \
/etc/systemd \
/lib/lsb \
/lib/udev \
/usr/lib/x86_64-linux-gnu/gconv/IBM* \
/usr/lib/x86_64-linux-gnu/gconv/EBC* && \
mkdir -p /usr/share/man/man1 /usr/share/man/man2 \
/usr/share/man/man3 /usr/share/man/man4 \
/usr/share/man/man5 /usr/share/man/man6 \
/usr/share/man/man7 /usr/share/man/man8