Update 3 files

- /dist.tgz
- /docker-entrypoint.sh
- /Dockerfile
This commit is contained in:
2024-01-16 03:23:55 +00:00
parent 9eef534193
commit 082fac842d
3 changed files with 1 additions and 25 deletions

View File

@@ -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

BIN
dist.tgz

Binary file not shown.

View File

@@ -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