# modified version of https://github.com/theniwo/clonezilla

ARG OS

FROM docker.io/$OS

ARG OS
ARG BDATE

LABEL maintainer="bofh42@webgods.de"
LABEL org.label-schema.schema-version="1.0" \
      org.label-schema.build-date=$BDATE \
      org.label-schema.name="CloneZilla $OS"

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get -y install bc clonezilla dialog dosfstools parted procps squashfs-tools ntfs-3g cifs-utils nfs-common openssh-client sshfs net-tools iproute2 dnsutils iputils-ping wget curl telnet rsync mc vim netcat
RUN apt-get -y clean
RUN apt-get -y autoclean
RUN apt-get -y autoremove

# Set up users and passwords
RUN echo 'root:rip4root' | chpasswd

# Set Variables
ENV NOTVISIBLE "in users profile"
RUN echo "export VISIBLE=now" >> /etc/profile
