diff --git a/README.md b/README.md index 2bda961..6402259 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,7 @@ Running this using native java requires the fat jar, download the latest from th java -Dsonarr.apikey=YOUR_API_KEY\ -Dradarr.apikey=YOUR_API_KEY\ -Dplex.token=YOUR_PLEX_TOKEN\ + -Xmx100m\ -jar watchlistarr.java ``` diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index db5b82a..601d52b 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -2,6 +2,8 @@ CMD="/app/bin/watchlistarr" +JAVA_OPTS="-Xmx100m" + if [ -n "$SONARR_API_KEY" ]; then CMD="$CMD -Dsonarr.apikey=$SONARR_API_KEY" fi @@ -66,4 +68,4 @@ if [ -n "$SKIP_FRIEND_SYNC" ]; then CMD="$CMD -Dplex.skipfriendsync=$SKIP_FRIEND_SYNC" fi -exec $CMD +exec $CMD $JAVA_OPTS