repo-cloner/Dockerfile

23 lines
508 B
Docker

# Alpine base image
FROM registry.sw3.cz/valicek1/lxc-alpine
VOLUME /data
RUN apk add --no-cache git bash openssh parallel openssh-keygen vim shadow
RUN useradd --uid 10000 -ms /bin/bash executor
ADD crontab /etc/crontabs/executor
RUN apk del shadow
ADD dockerbin/* checker/* src/* /usr/local/bin/
ADD executor-conf /etc/init.d
RUN rc-update add executor-conf default
# remove tty autospawn from inittab
RUN sed 's/^tty.*$//g' -i /etc/inittab
# disable motd
RUN echo > /etc/motd
CMD [ "/sbin/init" ]