Dockerfile 625 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# use thorntial to make deployment most lightweight
# should run in certified secure env
FROM governikus/zulu-openjdk:8u212

ADD *-thorntail.jar /opt/thorntail.jar

# pck12 file for signing certificate requests
COPY sam.docker.reqesidta.de.p12 /opt/sam.docker.reqesidta.de.p12

# Prevent error "SocketException: Protocol family unavailable", see:
# See https://www.sipmann.com/socketException-protocol-family-unavailable-java-docker-wildfly.html#.XZ8tvZxCSWg
ENV JAVA_OPTS="-Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true"

EXPOSE 8080

ENTRYPOINT exec java $JAVA_OPTS $JAVA_DEBUG -jar /opt/thorntail.jar