DrMor
Members
-
Joined
-
Last visited
Solutions
-
DrMor's post in Using "Extra Parameters" to install more pip packages was marked as the answerFor anyone looking to do the same, I solved it.
startup.sh needs to be:
#!/bin/sh # Install necessary Python packages pip install PyPDF2 openai # Default command if none is provided if [ -z "$1" ]; then set -- "/usr/local/bin/paperless_cmd.sh" fi # Execute the original entry point script with provided arguments exec /sbin/docker-entrypoint.sh "$@" and "Extra Parameters" is:
--entrypoint /usr/src/paperless/scripts/startup.sh Important to not forget "chmod +x startup.sh" and the proper path allocation in unraid, in my case from "/mnt/cache/appdata/paperless-ngx/scripts/" to "/usr/src/paperless/scripts"