diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -1,7 +1,11 @@ -FROM openjdk:8-jdk-alpine +FROM openjdk:8-jre-alpine +ARG SERVER_PORT ARG PKG_FILENAME=nbi-rest-services-1.0.0-SNAPSHOT.jar - ADD target/$PKG_FILENAME app.jar -ENV JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom -Dspring.profiles.active=docker -jar" -ENTRYPOINT exec java $JAVA_OPTS /app.jar
\ No newline at end of file + +ENV SERVER_PORT=${SERVER_PORT:-8080} +ENV JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom -jar" + +EXPOSE $SERVER_PORT +ENTRYPOINT java $JAVA_OPTS -jar /app.jar |