Can anyone help me to create Dockerfile for my tomcat copy?

Ninja

I can not use default copy of tomcat because I have some depended jar file which I have to put in tomcat lib folder.

What image can I use in order to have the right dependencies into Tomcat lib?

VonC

Simply make your own Dockerfile (FROM the official tomcat image, like the 8.5 one for instance) which will copy that dependent jar into tomcat lib folder:

FROM tomcat:8.5
EXPOSE 8080
COPY your/dependent/jar /path/to/tomcat/lib
# For instance
COPY your/dependent/jar /usr/share/tomcat8/lib

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related