Split into multiple commands - when exporting to lxc, doesn't matter
This commit is contained in:
parent
6e8b41ade3
commit
0625303ec5
15
Dockerfile
15
Dockerfile
|
@ -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/
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user