2018-02-06 11:53:29 +01:00
|
|
|
# Alpine base image
|
|
|
|
FROM alpine:edge
|
|
|
|
|
|
|
|
VOLUME /data
|
|
|
|
|
2018-02-23 10:17:37 +01:00
|
|
|
RUN apk add --no-cache git bash openssh parallel shadow ; \
|
|
|
|
useradd -ms /bin/bash executor ; \
|
|
|
|
chown executor:executor /data ; \
|
|
|
|
echo "* * * * * /usr/local/bin/cron-command" >> /etc/crontabs/executor ; \
|
|
|
|
touch /var/run/cloner.pid ; \
|
|
|
|
chown executor:executor /var/run/cloner.pid ; \
|
|
|
|
apk del shadow
|
2018-02-06 11:53:29 +01:00
|
|
|
|
2018-02-23 10:17:37 +01:00
|
|
|
ADD dockerbin/* checker/* src/* /usr/local/bin/
|
2018-02-06 11:53:29 +01:00
|
|
|
|
2018-02-08 15:09:47 +01:00
|
|
|
|
2018-02-23 10:17:37 +01:00
|
|
|
CMD [ "/usr/local/bin/launch-cron" ]
|
2018-02-06 11:53:29 +01:00
|
|
|
|
|
|
|
|