repo-cloner/Dockerfile

19 lines
493 B
Docker
Raw Normal View History

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
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
RUN echo "* * * * * /usr/local/bin/cron-command" >> /etc/crontabs/executor
RUN touch /var/run/cloner.pid
RUN chown executor:executor /var/run/cloner.pid
RUN apk del shadow
ADD dockerbin/* checker/* src/* /usr/local/bin/
2018-02-06 11:53:29 +01:00
CMD [ "/usr/local/bin/launch-cron" ]
2018-02-06 11:53:29 +01:00