Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@ ARG TEMURIN_TAG

FROM eclipse-temurin:$TEMURIN_TAG

ARG TEMURIN_TAG
MAINTAINER Dwolla Engineering <dev+docker@dwolla.com>
LABEL org.label-schema.vcs-url="https://github.com/Dwolla/docker-java"

RUN if [ "$TEMURIN_TAG" = "8u322-b06-jdk" ] ; then \
SECURITY_FILE_PATH=$JAVA_HOME/jre/lib/security/java.security ; \
elif [ "$TEMURIN_TAG" = "8u322-b06-jre" ] ; then \
SECURITY_FILE_PATH=$JAVA_HOME/lib/security/java.security ; \
RUN if [ -f "$JAVA_HOME/jre/lib/security/java.security" ] ; then \
SECURITY_FILE_PATH=$JAVA_HOME/jre/lib/security/java.security ; \
elif [ -f "$JAVA_HOME/lib/security/java.security" ] ; then \
SECURITY_FILE_PATH=$JAVA_HOME/lib/security/java.security ; \
elif [ -f "$JAVA_HOME/conf/security/java.security" ] ; then \
SECURITY_FILE_PATH=$JAVA_HOME/conf/security/java.security ; \
else \
SECURITY_FILE_PATH=$JAVA_HOME/conf/security/java.security; \
echo 'java.security file path not found' ; \
exit 98 ; \
fi && \
apt-get update && \
apt-get install -y bash && \
Expand Down