I'm having trouble getting my war file to deploy on application start. I'm using Payara Server Full
According to the docs here:
The following sample Dockerfile can be used to prepare a custom Payara Server image that deploys the myapplication.war artefact at runtime:
FROM payara/server-full COPY myapplication.war $DEPLOY_DIRAnd to launch the container, simply build and run the image like this:
docker build -t mycompany/myapplication:1.0 . docker run -p 8080:8080 mycompany/myapplication:1.0But when I run the container, it doesn't try and deploy the
application unless I restart the container. Am I missing something here?
I'd expect the container to try and deploy the application from a fresh
boot, every time, otherwise it kind of defeats the point of ephemeral
containers?
Link to stack overflow where i've posted the logs:
https://stackoverflow.com/questions/69117678/deploy-war-file-in-payara-5-docker-container