-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (19 loc) · 743 Bytes
/
Dockerfile
File metadata and controls
23 lines (19 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM openjdk:8u282-jre-slim
ARG VERSION
COPY container/ /
RUN apt-get -qq update \
&& apt-get -qq install --no-install-recommends \
curl `# For health checks` \
netcat `# For health checks` \
&& apt-get -qq clean \
&& rm --recursive --force /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& curl --silent https://repo1.maven.org/maven2/com/h2database/h2/$VERSION/h2-$VERSION.jar --output /h2/h2.jar \
&& mkdir --parents /data
CMD ["java", \
"-javaagent:/h2/jolokia/jolokia-jvm-1.6.2-agent.jar=config=/h2/jolokia/jolokia.properties", \
"-classpath", "/h2/h2.jar", \
"org.h2.tools.Server", \
"-baseDir", "/data", \
"-tcp", "-tcpAllowOthers", \
"-web", "-webAllowOthers", "-webAdminPassword", "aixa5iphi3ee" \
]