-
Notifications
You must be signed in to change notification settings - Fork 15
/
Dockerfile
27 lines (21 loc) · 1013 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
ARG TOMCAT_VERSION=10.1.28-jdk21
FROM tomcat:$TOMCAT_VERSION
LABEL Maintainer JamfDevops <devops@jamf.com>
RUN apt-get update -qq && \
DEBIAN_FRONTEND=noninteractive apt-get install --ignore-missing --no-install-recommends -y jq curl unzip && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
adduser --disabled-password --gecos '' tomcat && \
rm -rf /usr/local/tomcat/webapps && \
mkdir -p /usr/local/tomcat/webapps && \
mkdir /jamfpro-config
COPY startup.sh /startup.sh
COPY log4j.stdout.replace /log4j.stdout.replace
COPY log4j2.stdout.appenders.replace /log4j2.stdout.appenders.replace
COPY log4j2.stdout.loggers.analytics.replace /log4j2.stdout.loggers.analytics.replace
COPY log4j2.stdout.loggers.root.replace /log4j2.stdout.loggers.root.replace
COPY log4j2.stdout.loggers.vpp.replace /log4j2.stdout.loggers.vpp.replace
COPY server.template /jamfpro-config/server.template
COPY configuration.sh /configuration.sh
CMD ["/startup.sh"]
VOLUME /usr/local/tomcat/logs
EXPOSE 8080