2016-06-16 09:59:15 +02:00
|
|
|
# docker image with basic networking tools
|
|
|
|
|
2023-06-13 13:27:52 +02:00
|
|
|
ARG DOCKER_REPOSITORY
|
|
|
|
FROM $DOCKER_REPOSITORY/ipterm-base
|
2016-06-16 09:59:15 +02:00
|
|
|
|
2023-06-13 13:27:52 +02:00
|
|
|
#
|
|
|
|
# startup script
|
|
|
|
#
|
|
|
|
RUN printf '\
|
|
|
|
\043!/bin/sh\n\
|
|
|
|
[ $$ -eq 1 ] && exec dumb-init -- "$0" "$@"\n\
|
|
|
|
\n\
|
|
|
|
[ -f /root/init.sh ] && [ -x /root/init.sh ] && /root/init.sh\n\
|
|
|
|
\n\
|
|
|
|
cd\n\
|
|
|
|
if [ $# -gt 0 ]; then\n\
|
|
|
|
"$@"\n\
|
|
|
|
else\n\
|
|
|
|
bash -i -l\n\
|
|
|
|
fi\n' \
|
|
|
|
> /etc/init.sh && chmod +x /etc/init.sh
|
2023-05-27 16:08:34 +02:00
|
|
|
|
2023-06-13 13:27:52 +02:00
|
|
|
ENTRYPOINT [ "/etc/init.sh" ]
|
2016-06-16 09:59:15 +02:00
|
|
|
VOLUME [ "/root" ]
|