Skip to content

Commit

Permalink
fix: Enable port changes for Docker image using the PORT variable (OH…
Browse files Browse the repository at this point in the history
  • Loading branch information
nbyl authored Sep 30, 2020
1 parent 48ecbc2 commit bea31d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .docker/Viewer-v2.x/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ if [ -n "$CLIENT_ID" ] || [ -n "$HEALTHCARE_API_ENDPOINT" ]
cp /usr/share/nginx/html/google.js /usr/share/nginx/html/app-config.js
fi

if [ -n "${PORT}" ]
then
echo "Changing port to ${PORT}..."
sed -i -e "s/listen 80/listen ${PORT}/g" /etc/nginx/conf.d/default.conf
fi

echo "Starting Nginx to serve the OHIF Viewer..."

exec "$@"

0 comments on commit bea31d5

Please sign in to comment.