diff --git a/ubuntu/Dockerfile b/ubuntu/Dockerfile index d6f45d6..3f76ef9 100644 --- a/ubuntu/Dockerfile +++ b/ubuntu/Dockerfile @@ -2,4 +2,5 @@ ARG UBUNTU_RELEASE FROM ubuntu:${UBUNTU_RELEASE} COPY helpers /helpers ARG UBUNTU_RELEASE=${UBUNTU_RELEASE} +RUN apt-get update && apt-get install -y systemd systemd-sysv systemd-timesyncd libnss-systemd libpam-systemd libsystemd0 networkd-dispatcher RUN chmod 0 /bin/systemctl;cd /helpers; sh build.sh; cd /; rm -rf helpers;chmod 755 /bin/systemctl diff --git a/ubuntu/helpers/build.sh b/ubuntu/helpers/build.sh index 4b3e2be..97de722 100755 --- a/ubuntu/helpers/build.sh +++ b/ubuntu/helpers/build.sh @@ -5,6 +5,9 @@ echo Installing Ubuntu $UBUNTU_RELEASE export DEBIAN_FRONTEND=noninteractive apt-get update apt-get install -yq apt-utils +if ! command -v unminimize; then + apt-get install -yq unminimize +fi yes | unminimize apt-get install -yq \ systemd-sysv \