Sign inSign up

smaject/tomcat

By smaject

•Updated about 9 years ago

Base container image for the Apache Tomcat Webserver

Image
0

250

smaject/tomcat repository overview

⁠Apache Tomcat

Base container image for the Apache Tomcat Webserver⁠. As the most images here it's based on CentOS 7.

⁠Usage

docker run -it -p8080:8080 smaject/tomcat

⁠War deployment

Usually you would extend this Dockerfile with your own and add your application war-file to it. Something like:

FROM smaject/tomcat
COPY  ./target/my-app.war ${DEPLOYMENT_DIR}

⁠Deploy as default app (context-path /)

Befor you copy your war into the deployment directory you have to:

  • Delete ${DEPLOYMENT_DIR}/ROOT
  • rename your war to ROOT.war

Tag summary

Content type

Image

Digest

Size

156.9 MB

Last updated

about 9 years ago

docker pull smaject/tomcat