view tomcat-17/Dockerfile @ 455:17c7d5baf8c2

USASR-5154 install x11-common
author belknapSSDT <zach.belknap@mcoecn.org>
date Wed, 27 Sep 2023 17:21:03 -0400
parents d73690f282d3
children af1111121acd
line wrap: on
line source
FROM tomcat:8.5.93-jre17

MAINTAINER Marc Davis <davis@ssdt-ohio.org>

RUN apt-get update && apt-get install -y gnupg && apt-get install -y apt-transport-https && apt-get install debian-archive-keyring && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 9D6D8F6BC857C906 \
    && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys AA8E81B4331F7F50 && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 04EE7237B7D453EC \
    && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 648ACFD622F3D138 && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0E98404D386FA1D9 \
    && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EF0F382A1A7B6500 && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 871920D1991BC93C

RUN apt-key list

RUN gpg --no-default-keyring --keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg  --export > /etc/apt/trusted.gpg.d/ubuntu-keyring.fixed.gpg \
    && gpg --no-default-keyring --keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg  --export > /etc/apt/trusted.gpg.d/ubuntu-keyring.fixed.gpg

RUN apt-get install debian-archive-keyring && apt-get install x11-common && apt-key update

RUN echo "deb http://archive.debian.org/debian/ stretch main contrib" > /etc/apt/sources.list \
    && echo "deb http://archive.debian.org/debian-security/ stretch/updates main contrib" >> /etc/apt/sources.list \
    && echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections


RUN apt-get update \
    && apt-get install -y ttf-mscorefonts-installer \
    && apt-get clean \
    && apt-get autoremove -y \
    && rm -rf /var/lib/apt/lists/*
    
RUN apt-get update \
    && apt-get install -y postgresql-client  \
    && apt-get clean \
    && apt-get autoremove -y \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /usr/local/tomcat

COPY setenv.sh bin/
COPY tomcat-users.xml server.xml context.xml logging.properties conf/

RUN rm -rf webapps/docs webapps/ROOT webapps/examples webapps/docs webapps/host-manager \
	&& chmod +x bin/setenv.sh
	
ENV TZ=America/New_York