🐳 Add Dockerfile to create image with local code

This commit is contained in:
Jan Oberhauser
2020-05-15 09:31:55 +02:00
parent 193e8b26b9
commit 24081d697b
3 changed files with 72 additions and 0 deletions

View 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