2017-06-28 19:25:58 +02:00
|
|
|
FROM kasproject/kas:latest
|
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
|
|
|
ENV LC_ALL=en_US.UTF-8
|
2018-01-20 15:07:52 +01:00
|
|
|
RUN echo 'deb http://deb.debian.org/debian jessie-backports main' >> /etc/apt/sources.list.d/backports.list && \
|
|
|
|
apt-get update && \
|
2017-06-28 19:25:58 +02:00
|
|
|
apt-get install -y -f --no-install-recommends --target-release jessie \
|
|
|
|
autoconf automake gdisk libtool bash-completion \
|
2018-02-27 07:57:08 +01:00
|
|
|
sudo grub2 grub-efi-amd64-bin grub-efi-ia32-bin \
|
2018-04-18 15:36:38 +02:00
|
|
|
reprepro python3 binfmt-support && \
|
2017-06-28 19:25:58 +02:00
|
|
|
apt-get install -y -f --no-install-recommends --target-release jessie-backports \
|
|
|
|
e2fsprogs && \
|
|
|
|
apt-get install -y -f --no-install-recommends --target-release stretch \
|
2018-04-18 15:36:38 +02:00
|
|
|
multistrap qemu-user-static debootstrap && \
|
2017-06-28 19:25:58 +02:00
|
|
|
apt-get clean && \
|
|
|
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp*
|
|
|
|
|
|
|
|
RUN echo "builder ALL=NOPASSWD: ALL" > /etc/sudoers.d/builder-nopasswd && \
|
|
|
|
chmod 660 /etc/sudoers.d/builder-nopasswd
|
2017-09-05 10:58:52 +02:00
|
|
|
|
2017-11-02 14:11:58 +01:00
|
|
|
RUN echo "Defaults env_keep += \"ftp_proxy http_proxy https_proxy no_proxy\"" \
|
|
|
|
> /etc/sudoers.d/env_keep && chmod 660 /etc/sudoers.d/env_keep
|
|
|
|
|
2017-09-05 10:58:52 +02:00
|
|
|
RUN sed -i "s|#!/bin/bash|\0\n\nupdate-binfmts --enable|" /kas/docker-entrypoint
|