Split into multiple commands - when exporting to lxc, doesn't matter

This commit is contained in:
Václav Valíček 2018-10-27 00:38:25 +02:00
parent 6e8b41ade3
commit 0625303ec5
No known key found for this signature in database
GPG Key ID: 7CF44871CEA75938

View File

@ -3,14 +3,13 @@ FROM registry.sw3.cz/valicek1/lxc-alpine
VOLUME /data VOLUME /data
RUN apk add --no-cache git bash openssh parallel openssh-keygen vim shadow ; \ RUN apk add --no-cache git bash openssh parallel openssh-keygen vim shadow
useradd -ms /bin/bash executor ; \ RUN useradd --uid 10000 -ms /bin/bash executor
chown executor:executor /data ; \ RUN chown executor:executor /data
echo "* * * * * /usr/local/bin/cron-command" >> /etc/crontabs/executor ; \ RUN echo "* * * * * /usr/local/bin/cron-command" >> /etc/crontabs/executor
touch /var/run/cloner.pid ; \ RUN touch /var/run/cloner.pid
chown executor:executor /var/run/cloner.pid ; \ RUN chown executor:executor /var/run/cloner.pid
apk del shadow RUN apk del shadow
ADD dockerbin/* checker/* src/* /usr/local/bin/ ADD dockerbin/* checker/* src/* /usr/local/bin/