{"id":19656873,"url":"https://github.com/daggerok/apache-tomcat","last_synced_at":"2026-04-30T03:35:17.646Z","repository":{"id":151041431,"uuid":"116034671","full_name":"daggerok/apache-tomcat","owner":"daggerok","description":"Apache Tomcat docker image (Linux Alpine, OpenJDK 8u151)","archived":false,"fork":false,"pushed_at":"2020-08-07T11:02:58.000Z","size":28,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-27T00:45:22.831Z","etag":null,"topics":["apache-tomcat","docker","docker-image","tomcat","tomcat-docker-image"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/daggerok/apache-tomcat","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daggerok.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-02T16:26:43.000Z","updated_at":"2020-08-07T10:43:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"1253fabf-bb70-4ad3-a131-91534c3894b4","html_url":"https://github.com/daggerok/apache-tomcat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/daggerok/apache-tomcat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fapache-tomcat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fapache-tomcat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fapache-tomcat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fapache-tomcat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daggerok","download_url":"https://codeload.github.com/daggerok/apache-tomcat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fapache-tomcat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32454075,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apache-tomcat","docker","docker-image","tomcat","tomcat-docker-image"],"created_at":"2024-11-11T15:29:09.788Z","updated_at":"2026-04-30T03:35:12.637Z","avatar_url":"https://github.com/daggerok.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# apache-tomcat [![Build Status](https://travis-ci.org/daggerok/apache-tomcat.svg?branch=master)](https://travis-ci.org/daggerok/apache-tomcat)\nApache Tomcat docker image automation build\n\n## Tags\n\n- [latest](https://github.com/daggerok/apache-tomcat/blob/master/Dockerfile) (based on [openjdk:8u212-jdk-alpine3.9](https://hub.docker.com/_/openjdk/) image)\n- [9.0.37](https://github.com/daggerok/apache-tomcat/blob/9.0.37/Dockerfile) (based on [openjdk:8u212-jdk-alpine3.9](https://hub.docker.com/_/openjdk/) image)\n- [9.0.6](https://github.com/daggerok/apache-tomcat/blob/9.0.6/Dockerfile) (based on [openjdk:8u151-jdk-alpine](https://hub.docker.com/_/openjdk/) image with JCE installed)\n- [9.0.2](https://github.com/daggerok/apache-tomcat/blob/9.0.2/Dockerfile) (based on [openjdk:8u151-jdk-alpine](https://hub.docker.com/_/openjdk/) image with JCE installed)\n- [8.5.57](https://github.com/daggerok/apache-tomcat/blob/8.5.57/Dockerfile) (based on [openjdk:8u212-jdk-alpine3.9](https://hub.docker.com/_/openjdk/) image)\n- [8.5.29](https://github.com/daggerok/apache-tomcat/blob/8.5.29/Dockerfile) (based on [openjdk:8u151-jdk-alpine](https://hub.docker.com/_/openjdk/) image with JCE installed)\n- [8.5.24](https://github.com/daggerok/apache-tomcat/blob/8.5.24/Dockerfile) (based on [openjdk:8u151-jdk-alpine](https://hub.docker.com/_/openjdk/) image with JCE installed)\n\n**Exposed ports**:\n\n- 8080 - deployed web apps\n\n## Usage:\n\ncreate _Dockerfile_ with next content:\n\n```\n\nFROM daggerok/apache-tomcat:8.5.57\nRUN rm -rf ${TOMCAT_HOME}/webapps/ROOT*\nCOPY --chown=tomcat ./target/*.war ${TOMCAT_HOME}/webapps/ROOT.war\n\n```\n\nbuild and run application in Docker:\n\n```bash\ndocker build -t daggerok/my-site .\ndocker run --name my-site --rm -it -p 8080:8080 daggerok/my-site\n```\n\ntest if it's works and hosted from root context path:\n\n```bash\ncurl 0:8080/\n```\n\ncleanup:\n\n```bash\ndocker stop my-site\n```\n\n### Health-check\n\nAssuming you have `/health` in your `app`:\n\n```\n\nFROM daggerok/apache-tomcat:9.0.37\nHEALTHCHECK --start-period=1s                                             \\\n            --interval=1s                                                 \\\n            --timeout=5s                                                  \\\n            --retries=33                                                  \\\n        CMD wget -q --spider http://127.0.0.1:8080/app/health/ || exit 1\n#ADD ./build/libs/*.war ${TOMCAT_HOME}/webapps/app.war\nCOPY --chwon=tomcat ./build/libs/*.war ${TOMCAT_HOME}/webapps/app.war\n\n```\n\n### Remote debug\n\n```\n\nFROM daggerok/apache-tomcat:9-alpine\nARG JPDA_OPTS_ARG=\"${JAVA_OPTS} -agentlib:jdwp=transport=dt_socket,address=1043,server=y,suspend=n\"\nENV JPDA_OPTS=\"${JPDA_OPTS_ARG}\"\nEXPOSE 5005\nCOPY --chwon=tomcat ./target/*.war ${TOMCAT_HOME}/webapps/\n\n```\n\n### Multi-deployment\n\n```\n\nFROM daggerok/apache-tomcat:8.5.57-alpine\nCOPY --chwon=tomcat ./path/to/some/*.war ./path/to/another/*.war ${TOMCAT_HOME}/webapps/\n\n```\n\n### ROOT context-path\n\n```\n\nFROM daggerok/apache-tomcat:8\nRUN rm -rf ${TOMCAT_HOME}/webapps/{ROOT*,docs,examples,host-manager,manager}\nCOPY --chwon=tomcat ./path/to/some/*.war ${TOMCAT_HOME}/webapps/ROOT.war\n\n```\n\n### Shell command\n\n```\n\ndocker run --rm --name tomcat -d -p 8080:8080 daggerok/tomcat:8.5.57\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaggerok%2Fapache-tomcat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaggerok%2Fapache-tomcat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaggerok%2Fapache-tomcat/lists"}