aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorAdrian OSullivan <adrian.osullivan@huawei.com>2020-01-13 09:54:59 +0000
committerGerrit Code Review <gerrit@onap.org>2020-01-13 09:54:59 +0000
commit74474544e4e3013c582ca5579a0088c40dacc0e5 (patch)
treeb80267e923d525817e80d3000da8fe0e069288dc /Dockerfile
parentca7fa9dce1d37491e648531998c1577446eff23b (diff)
parent55b339f77d4944b17a4eeefb8ade6ff5f05a422d (diff)
Merge "Add support for HTTPS with self signed certificates"
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index ab23eec..6d2c3de 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -36,8 +36,10 @@ RUN for cert in $(ls -d /certs/*); do \
USER appuser:appgroup
-ENV SERVER_PORT=${SERVER_PORT:-8080}
-ENV JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom"
+ENV SERVER_PORT=${SERVER_PORT:-8443}
+ENV HTTP_PORT=${HTTP_PORT:-8080}
+ENV JAVA_OPTS="-Dspring.profiles.active=ssl -Djava.security.egd=file:/dev/./urandom"
EXPOSE $SERVER_PORT
+EXPOSE $HTTP_PORT
ENTRYPOINT java -XX:+UseContainerSupport $JAVA_OPTS -jar /app.jar