From c736ecb20251ec4f7b818cd3f367c44c79f8ca27 Mon Sep 17 00:00:00 2001 From: surtur Date: Fri, 15 Jan 2021 00:38:53 +0100 Subject: [PATCH] chore: add entrypoint.sh script * source bashrc with entrypoint script since many a times it's possible a non-interactive shell is spun up and asdf+gradle niceties just wouldn't get loaded --- Dockerfile | 4 ++++ entrypoint.sh | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 entrypoint.sh diff --git a/Dockerfile b/Dockerfile index 227cd3e..b170f88 100644 --- a/Dockerfile +++ b/Dockerfile @@ -87,4 +87,8 @@ RUN rm -rf /opt/jre/lib/plugin.jar \ /opt/jre/lib/amd64/libjavafx*.so \ /opt/jre/lib/amd64/libjfx*.so &&\ rm -rf /var/cache/apk/* + WORKDIR / +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..cc97fa4 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,3 @@ +#!/bin/sh +. /root/.bashrc +exec "$@"