-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
56 lines (29 loc) · 816 Bytes
/
Dockerfile
File metadata and controls
56 lines (29 loc) · 816 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
FROM tomcat:10.1.52-jdk21-temurin
LABEL maintainer="martynas@atomgraph.com"
RUN apt-get update && \
apt-get -y install xsltproc
# USER tomcat
WORKDIR $CATALINA_HOME
ENV HTTP=true
ENV HTTP_PORT=8080
ENV HTTP_PROXY_NAME=
ENV HTTP_PROXY_PORT=
ENV HTTP_REDIRECT_PORT=
ENV HTTP_CONNECTION_TIMEOUT=20000
ENV HTTPS=false
ENV HTTPS_PORT=8443
ENV HTTPS_MAX_THREADS=150
ENV HTTPS_CLIENT_AUTH=
ENV HTTPS_PROXY_NAME=
ENV HTTPS_PROXY_PORT=
ENV JKS_FILE=letsencrypt.jks
ENV JKS_KEY_PASSWORD=
ENV KEY_ALIAS=letsencrypt
ENV JKS_STORE_PASSWORD=
ENV P12_FILE=letsencrypt.p12
# add XSLT stylesheet that makes changes to server.xml
COPY letsencrypt-tomcat.xsl conf/letsencrypt-tomcat.xsl
# add entrypoint
COPY entrypoint.sh entrypoint.sh
EXPOSE $HTTP_PORT $HTTPS_PORT
ENTRYPOINT ["/bin/sh", "entrypoint.sh"]