19 lines
470 B
Docker
19 lines
470 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
|
|
RUN useradd --uid 10000 -ms /bin/bash executor
|
|
RUN chown executor:executor /data
|
|
RUN echo "* * * * * /usr/local/bin/cron-command" >> /etc/crontabs/root
|
|
RUN apk del shadow
|
|
ADD dockerbin/* checker/* src/* /usr/local/bin/
|
|
# remove tty autospawn from inittab
|
|
RUN sed 's/^tty.*$//g' -i /etc/inittab
|
|
|
|
|
|
CMD [ "/sbin/init" ]
|
|
|
|
|