mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
🐳 Add Dockerfile to create image with local code
This commit is contained in:
16
docker/images/n8n-custom/docker-entrypoint.sh
Executable file
16
docker/images/n8n-custom/docker-entrypoint.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -d /root/.n8n ] ; then
|
||||
chmod o+rx /root
|
||||
chown -R node /root/.n8n
|
||||
ln -s /root/.n8n /home/node/
|
||||
fi
|
||||
|
||||
if [ "$#" -gt 0 ]; then
|
||||
# Got started with arguments
|
||||
shift
|
||||
exec su-exec node ./packages/cli/bin/n8n "$@"
|
||||
else
|
||||
# Got started without arguments
|
||||
exec su-exec node ./packages/cli/bin/n8n
|
||||
fi
|
||||
Reference in New Issue
Block a user