Sign inSign up

imocence/tomcat-alpine

By imocence

•Updated about 3 years ago

Based on openjdk-alpine:v1.8.0_342 mirror build tomcat8

Image
0

187

imocence/tomcat-alpine repository overview

⁠Use Dockerfile file content

# Base image
FROM imocence/openjdk-alpine:v1.8.0_342

# Image creator
MAINTAINER imocence

ENV PATH=.:$JAVA_HOME/bin:$PATH TOM_VER=8.5.82

# Copies the source file to the specified directory
ADD apache-tomcat-${TOM_VER}.tar.gz /opt/

RUN mv /opt/apache-tomcat-${TOM_VER} /opt/tomcat

# Specify the working directory
WORKDIR /opt/tomcat

EXPOSE 8080 8009

VOLUME ["/opt/tomcat/webapps","/opt/tomcat/logs"]

CMD ["/opt/tomcat/bin/catalina.sh", "run"]

⁠Use docker-compose.yml file content

version: '2'
services:
  web:
    image: imocence/tomcat-alpine:v8.5.82
    container_name: tomcat
    network_mode: bridge
    ports:
      - "0.0.0.0:8081:8080"
    volumes:
      - ./webapps:/opt/tomcat/webapps
      - ./logs:/opt/tomcat/logs
    restart: unless-stopped

Tag summary

Content type

Image

Digest

sha256:1257d74ce…

Size

102.9 MB

Last updated

about 3 years ago

docker pull imocence/tomcat-alpine:v8.0.50