20 lines
488 B
Docker
20 lines
488 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 ; \
|
|
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
|
|
|
|
ADD dockerbin/* checker/* src/* /usr/local/bin/
|
|
|
|
|
|
CMD [ "/usr/local/bin/launch-cron" ]
|
|
|
|
|