chore: add entrypoint.sh script
All checks were successful
continuous-integration/drone/push Build is passing

* 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
This commit is contained in:
surtur 2021-01-15 00:38:53 +01:00
parent 0dbe7e44a1
commit c736ecb202
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
2 changed files with 7 additions and 0 deletions

@ -87,4 +87,8 @@ RUN rm -rf /opt/jre/lib/plugin.jar \
/opt/jre/lib/amd64/libjavafx*.so \ /opt/jre/lib/amd64/libjavafx*.so \
/opt/jre/lib/amd64/libjfx*.so &&\ /opt/jre/lib/amd64/libjfx*.so &&\
rm -rf /var/cache/apk/* rm -rf /var/cache/apk/*
WORKDIR / WORKDIR /
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

3
entrypoint.sh Normal file

@ -0,0 +1,3 @@
#!/bin/sh
. /root/.bashrc
exec "$@"