Public | Automated Build

Last pushed: 8 months ago
FROM phusion/baseimage:latest MAINTAINER Maurice Kaag <> ENV HOME /root ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_PRIORITY critical ENV DEBCONF_NOWARNINGS yes # Workaround initramfs-tools running on kernel 'upgrade': <> ENV INITRD No # Workaround initscripts trying to mess with /dev/shm: <> # Used by the `build/ischroot` binary to behave in our custom way, to always say we are in a chroot. ENV FAKE_CHROOT 1 RUN \ dpkg-divert --remove /usr/bin/ischroot \ && dpkg-divert --add --rename --divert /usr/bin/ischroot.original /usr/bin/ischroot ADD build/ischroot /usr/bin/ischroot RUN chmod 755 /usr/bin/ischroot # Configure no init scripts to run on package updates. ADD build/policy-rc.d /usr/sbin/policy-rc.d RUN chmod 755 /usr/sbin/policy-rc.d RUN \ echo 'force-unsafe-io' | tee /etc/dpkg/dpkg.cfg.d/02apt-speedup \ && echo 'DPkg::Post-Invoke {"/bin/rm -f /var/cache/apt/archives/*.deb || true";};' | tee /etc/apt/apt.conf.d/no-cache \ && echo 'Acquire::http {No-Cache=True;};' | tee /etc/apt/apt.conf.d/no-http-cache # Disable SSH RUN rm -rf /etc/service/sshd /etc/my_init.d/ # Ensure UTF-8 RUN locale-gen en_US.UTF-8 ENV LANG en_US.UTF-8 ENV LC_ALL en_US.UTF-8 # Configure TZ ENV TZ Europe/Zurich # Upgrade distrib RUN \ apt-get update -qq \ && apt-get dist-upgrade -qqy # Install basic tools RUN apt-get install -qqy --no-install-recommends \ wget \ curl \ ntp # Cleanup RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Source Repository