I want to add my custom JBOSS_HOME
but when i run my dockerfile it give me an error.
JBOSS_HOME
may be pointing to a different installation - unpredictable results may occur.
Unable to access jarfile
/home/shri/opt/jboss/wildfly/jboss-modules.jar
MY Dockerfile is:-
FROM jboss/wildfly
MAINTAINER shri
USER root
ENV JBOSS_HOME /home/shri/opt/jboss/wildfly
RUN mkdir -p $JBOSS_HOME
ADD jboss-modules.jar /home/shri/jboss/wildfly/
USER jboss
build dockerfile using:
docker build -t jboss
.
Run dockerfile using:
docker run -p 8080:8080 jboss