FROM ubuntu:20.04

ENV TZ=UTC

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt update -y
RUN apt install -y systemd-sysv systemd isc-dhcp-client build-essential

STOPSIGNAL SIGRTMIN+3

ADD etc/ /etc/
ADD root/ /root/
RUN cd /root/ && g++ trial.cpp -o trial

CMD [ "/sbin/init" ]
