Remove tty from inittab

This commit is contained in:
Václav Valíček 2018-10-28 16:18:00 +01:00
parent 7538875c56
commit 8321d95788
No known key found for this signature in database
GPG Key ID: 7CF44871CEA75938

View File

@ -9,6 +9,8 @@ RUN chown executor:executor /data
RUN echo "* * * * * /usr/local/bin/cron-command" >> /etc/crontabs/root RUN echo "* * * * * /usr/local/bin/cron-command" >> /etc/crontabs/root
RUN apk del shadow RUN apk del shadow
ADD dockerbin/* checker/* src/* /usr/local/bin/ ADD dockerbin/* checker/* src/* /usr/local/bin/
# remove tty autospawn from inittab
RUN sed 's/^tty.*$//g' -i /etc/inittab
CMD [ "/sbin/init" ] CMD [ "/sbin/init" ]