Update 3 files
- /dist.tgz - /docker-entrypoint.sh - /Dockerfile
This commit is contained in:
@@ -4,9 +4,6 @@ FROM n8nio/n8n:latest
|
||||
USER root
|
||||
|
||||
COPY inject.js /tmp
|
||||
COPY dist.tgz /tmp
|
||||
RUN cat /tmp/inject.js >> /usr/local/lib/node_modules/n8n/packages/cli/dist/License.js
|
||||
|
||||
COPY docker-entrypoint.sh /
|
||||
|
||||
USER node
|
||||
@@ -1,21 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
mkdir -p ~/.n8n/nodes
|
||||
if [ -n "$NPM_PACKAGES" ]; then
|
||||
cd ~/.n8n/nodes
|
||||
npm install $NPM_PACKAGES
|
||||
cd -
|
||||
fi
|
||||
|
||||
if [ -n "$CUSTOM_UI" ]; then
|
||||
rm -rf /usr/local/lib/node_modules/n8n/packages/editor-ui/dist
|
||||
tar -xzf /tmp/dist.tgz -C /usr/local/lib/node_modules/n8n/packages/editor-ui
|
||||
fi
|
||||
|
||||
if [ "$#" -gt 0 ]; then
|
||||
# Got started with arguments
|
||||
exec n8n "$@"
|
||||
else
|
||||
# Got started without arguments
|
||||
exec n8n
|
||||
fi
|
||||
Reference in New Issue
Block a user