2018-02-06 11:53:29 +01:00
|
|
|
# Alpine base image
|
2018-10-27 00:05:23 +02:00
|
|
|
FROM registry.sw3.cz/valicek1/lxc-alpine
|
2018-02-06 11:53:29 +01:00
|
|
|
|
|
|
|
VOLUME /data
|
|
|
|
|
2018-10-27 00:38:25 +02:00
|
|
|
RUN apk add --no-cache git bash openssh parallel openssh-keygen vim shadow
|
|
|
|
RUN useradd --uid 10000 -ms /bin/bash executor
|
|
|
|
RUN chown executor:executor /data
|
2018-10-28 16:04:51 +01:00
|
|
|
RUN echo "* * * * * /usr/local/bin/cron-command" >> /etc/crontabs/root
|
2018-10-27 00:38:25 +02:00
|
|
|
RUN apk del shadow
|
2018-02-23 10:17:37 +01:00
|
|
|
ADD dockerbin/* checker/* src/* /usr/local/bin/
|
2018-10-28 16:26:20 +01:00
|
|
|
ADD executor-conf /etc/init.d
|
|
|
|
RUN rc-update add executor-conf default
|
2018-10-28 16:18:00 +01:00
|
|
|
# remove tty autospawn from inittab
|
|
|
|
RUN sed 's/^tty.*$//g' -i /etc/inittab
|
2018-10-28 16:26:20 +01:00
|
|
|
# disable motd
|
|
|
|
RUN echo > /etc/motd
|
|
|
|
|
2018-02-06 11:53:29 +01:00
|
|
|
|
2018-02-08 15:09:47 +01:00
|
|
|
|
2018-10-28 16:16:14 +01:00
|
|
|
CMD [ "/sbin/init" ]
|
2018-02-06 11:53:29 +01:00
|
|
|
|
|
|
|
|