0
Good evening, everyone!!
I have the following problem:
I need to upload a container containing the Glassfish server, the image was generated from a Dockerfile, however when running the container containing this image, in the last step, that is, to deploy the application, after some time the container finishes its execution.
Follow the body of Dockerfile
FROM ubuntu:latest
COPY ./glassfish/ /usr/local/
RUN apt-get update && apt-get install -y make git openjdk-8-jdk
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
ENV GLASSFISH_HOME /usr/local/glassfish4/glassfish
ENV PATH $JAVA_HOME/bin:$GLASSFISH_HOME/bin:$PATH
RUN mkdir /app
COPY ./mercado/target/mercado.war /app
WORKDIR /app
RUN asadmin start-domain domain1 && \
asadmin deploy /app/mercado.war
Finally I need the container to be running so that the application does not stop its execution.
I couldn’t identify the error in Dockerfile, but if you can help me right now I appreciate the attention!