Skip to content
Snippets Groups Projects
install.sh 555 B
Newer Older
  • Learn to ignore specific revisions
  • Torsten Grote's avatar
    Torsten Grote committed
    #!/usr/bin/env bash
    set -e
    set -x
    
    # update package sources
    apt-get update
    apt-get -y upgrade
    
    # do not install documentation to keep image small
    echo "path-exclude=/usr/share/locale/*" >> /etc/dpkg/dpkg.cfg.d/01_nodoc
    echo "path-exclude=/usr/share/man/*" >> /etc/dpkg/dpkg.cfg.d/01_nodoc
    echo "path-exclude=/usr/share/doc/*" >> /etc/dpkg/dpkg.cfg.d/01_nodoc
    
    # install dependencies
    ./install-dependencies.sh
    ./install-dependencies-verification.sh
    
    # clean up for smaller image size
    apt-get -y autoremove --purge
    apt-get clean
    rm -rf /var/lib/apt/lists/*