Docker Community Forums

Share and learn in the Docker community.

Create docker from ear files


(Insdocker) #1

Hi,

I have an ear file that I want to dockerize.
Am using openjdk:8-jre-alpine docker image.
How should I run this ear file in my dockerfile? What should be the command?

Any help would be appreciated.


(Sam) #2

what would you do normally as a single program?
if you

docker inspect alpine_image

you will see the cmd and entrypoint it provides, this is the SINGLE application running in the container.
that might tell you where the ear file should go, and how to configure it… also see the doc for the image u selected