Public Repository

Last pushed: 7 months ago
Short Description
Stripped down version of Ubuntu 16.04
Full Description

Built by this script

#!/bin/bash

PREFIX=pinaf

docker rm "$PREFIX/ubuntu-essential-multilayer" 2>/dev/null
set -ve
docker build -t "$PREFIX/ubuntu-essential-multilayer" -f multilayer.docker .
TMP_FILE="`mktemp -t ubuntu-essential-XXXXXXX.tar.gz`"
docker run --rm -i "$PREFIX/ubuntu-essential-multilayer" tar zpc --exclude=/etc/hostname \
  --exclude=/etc/resolv.conf --exclude=/etc/hosts --one-file-system / >"$TMP_FILE"
docker rmi "$PREFIX/ubuntu-essential-multilayer"
docker import - "$PREFIX/ubuntu-essential" <"$TMP_FILE"
rm -f "$TMP_FILE"

And this multilayer.docker file

FROM ubuntu:16.04
# Make an exception for apt: it gets deselected, even though it probably shouldn't.
RUN \
   dpkg --clear-selections && \
   echo apt install |dpkg --set-selections && \
   SUDO_FORCE_REMOVE=yes DEBIAN_FRONTEND=noninteractive apt-get --purge -y dselect-upgrade && \
   dpkg-query -Wf '${db:Status-Abbrev}\t${binary:Package}\n' |grep '^.i' |awk -F'\t' '{print $2 " install"}' |dpkg --set-selections && \
   rm -r /var/cache/apt /var/lib/apt/lists

Based on https://github.com/textlab/glossa/blob/master/script/build_ubuntu_essential.sh

Docker Pull Command
Owner
pinaf

Comments (0)