I need to run a java programm inside the python3-onbuild image (it is based on debian jessie) . I extended the dockerfile with the installation of java, but if i try to print out the version it results in
System error: exec: "java": executable file not found in $PATH
I created a repository with my code.
My Dockerfile:
FROM python:3-onbuild
ONBUILD RUN ["apt-get", "install", "-y", "openjdk-7-jre"]
# Define commonly used JAVA_HOME variable
ONBUILD ENV JAVA_HOME /usr/java/default
ONBUILD ENV PATH $PATH:$JAVA_HOME/bin
CMD ["java", "-version"]
Any idea whats wrong and how I can fix it ?