BAEL-1614 - Docker with Java Guest Post (#4474)

* BAEL-1614 - additions for docker

* BAEL-1614 - move docker project to guest module
This commit is contained in:
Eric Goebelbecker
2018-06-13 11:15:57 -04:00
committed by maibin
parent b59da11c66
commit 272f018f90
6 changed files with 52 additions and 3 deletions
+16
View File
@@ -0,0 +1,16 @@
# Alpine Linux with OpenJDK JRE
FROM openjdk:8-jre-alpine
RUN apk add --no-cache bash
# copy fat WAR
COPY spring-boot-app-0.0.1-SNAPSHOT.war /app.war
# copy fat WAR
COPY logback.xml /logback.xml
COPY run.sh /run.sh
# runs application
#CMD ["/usr/bin/java", "-jar", "-Dspring.profiles.active=default", "-Dlogging.config=/logback.xml", "/app.war"]
ENTRYPOINT ["/run.sh"]