view tomcat-17/Dockerfile @ 563:5aed9f469cb6

REMOVE SUDO
author belknapSSDT <zach.belknap@mcoecn.org>
date Fri, 24 May 2024 10:28:21 -0400
parents 5589e8f59ac0
children 429ab7060baf
line wrap: on
line source
FROM tomcat:9.0.89-jdk17

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


RUN apt-get update && apt-get install -y gnupg && apt-get install -y apt-transport-https \
    && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 871920D1991BC93C 112695A0E562B32A AA8E81B4331F7F50 04EE7237B7D453EC 648ACFD622F3D138 0E98404D386FA1D9 EF0F382A1A7B6500 \
    && gpg --export  871920D1991BC93C 112695A0E562B32A AA8E81B4331F7F50 04EE7237B7D453EC 648ACFD622F3D138 0E98404D386FA1D9 EF0F382A1A7B6500 | apt-key add  -

RUN apt-get update && apt-get install -y x11-common

RUN echo "deb http://deb.debian.org/debian buster main contrib non-free" > /etc/apt/sources.list \
    && echo "deb http://security.debian.org/debian-security/ buster/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 setenv17.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/setenv17.sh
	
ENV TZ=America/New_York