We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48ecbc2 commit bea31d5Copy full SHA for bea31d5
1 file changed
.docker/Viewer-v2.x/entrypoint.sh
@@ -28,6 +28,12 @@ if [ -n "$CLIENT_ID" ] || [ -n "$HEALTHCARE_API_ENDPOINT" ]
28
cp /usr/share/nginx/html/google.js /usr/share/nginx/html/app-config.js
29
fi
30
31
+if [ -n "${PORT}" ]
32
+ then
33
+ echo "Changing port to ${PORT}..."
34
+ sed -i -e "s/listen 80/listen ${PORT}/g" /etc/nginx/conf.d/default.conf
35
+fi
36
+
37
echo "Starting Nginx to serve the OHIF Viewer..."
38
39
exec "$@"
0 commit comments