Handle JAVA_HOME varying between base image versions

This commit is contained in:
Chuck Lantz
2019-05-28 09:54:36 -07:00
parent 028a9d4874
commit 913acfbc34
3 changed files with 8 additions and 2 deletions

View File

@@ -22,5 +22,8 @@ RUN apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
ENV DEBIAN_FRONTEND=dialog
# Allow for a consistant java home location for settings - image is changing over time
RUN if [ ! -d "/docker-java-home" ]; then ln -s "${JAVA_HOME}" /docker-java-home; fi
# Set the default shell to bash rather than sh
ENV SHELL /bin/bash