#Addon to run a java program

1 messages · Page 1 of 1 (latest)

limpid trout
#

I've built an addon. Dockerfile starts with
ARG BUILD_FROM
FROM $BUILD_FROM
When the addon trys to start my java app I get error
java: command not found
So, should I be using a different base image for Docker, or should I be installing jre inside the addon?
I don't know how to do either 😦
Any help much appreciated.

lunar knot
#

Java is not installed by default

#

Check which version of java do you need, and install accordingly

#

e.g I needed JDK 8, so for the base image you need to add this to your Dockerfile:

#

RUN apk add --no-cache openjdk8-jre