From 8321d95788cb71e1b22f39cfb0e42fadc2aebb24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Val=C3=AD=C4=8Dek=20=28YCNet=29?= Date: Sun, 28 Oct 2018 16:18:00 +0100 Subject: [PATCH] Remove tty from inittab --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 5e22250..1640a0a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,8 @@ RUN chown executor:executor /data RUN echo "* * * * * /usr/local/bin/cron-command" >> /etc/crontabs/root RUN apk del shadow ADD dockerbin/* checker/* src/* /usr/local/bin/ +# remove tty autospawn from inittab +RUN sed 's/^tty.*$//g' -i /etc/inittab CMD [ "/sbin/init" ]