From 0625303ec568cf71c6f230f85b7a1ae3e6eaa30a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Val=C3=AD=C4=8Dek=20=28YCNet=29?= Date: Sat, 27 Oct 2018 00:38:25 +0200 Subject: [PATCH] Split into multiple commands - when exporting to lxc, doesn't matter --- Dockerfile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4ca9cf3..7279a5d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,14 +3,13 @@ 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 - +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/