-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathDockerfile
33 lines (31 loc) · 2.53 KB
/
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
28
29
30
31
32
33
FROM daggerok/jboss-eap-7.2:7.2.5-alpine
EXPOSE 8080
HEALTHCHECK --retries=33 \
--timeout=1s \
--interval=1s \
--start-period=3s \
CMD ( wget -q --spider http://127.0.0.1:8080/ ) || exit 1
COPY --chown=jboss ./target/*.war ${JBOSS_HOME}/standalone/deployments/app.war
##################################################################################################
# #
# # eap: #
# FROM daggerok/jboss:eap-7.1 #
# # wildfly: #
# FROM daggerok/jboss:wildfly-13.0.0.Final #
# #
# # remote debug (JetBrains IDEA remote debug zero-configuration): #
# ENV JAVA_OPTS="$JAVA_OPTS -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 " #
# EXPOSE 5005 #
# #
# # health (check assuming '/health' endpoint implemented): #
# HEALTHCHECK --timeout=2s --retries=22 \ #
# CMD wget -q --spider http://127.0.0.1:8080/my-service/health \ #
# || exit 1 #
# #
# # multi-deployments: #
# COPY ./build/libs/*.war ./target/*.war ${JBOSS_HOME}/standalone/deployments/ #
# #
# # single app deployment: #
# ADD ./build/libs/*.war ${JBOSS_HOME}/standalone/deployments/my-service.war #
# #
##################################################################################################