ci: Make custom images consistent with the release images (no-changelog) (#4924)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2022-12-21 17:12:12 +01:00 committed by GitHub
parent 1bc3930df8
commit c7b36ecfb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 12 deletions

View file

@ -22,7 +22,8 @@ RUN rm -rf patches .npmrc *.yaml node_modules/.cache packages/**/node_modules/.c
# 2. Start with a new clean image with just the code that is needed to run n8n
FROM n8nio/base:${NODE_VERSION}
COPY --from=builder /home/node ./
COPY --from=builder /home/node /usr/local/lib/node_modules/n8n
RUN ln -s /usr/local/lib/node_modules/n8n/packages/cli/bin/n8n /usr/local/bin/n8n
COPY docker/images/n8n-custom/docker-entrypoint.sh /
RUN \

View file

@ -1,16 +1,8 @@
#!/bin/sh
if [ "$#" -gt 0 ]; then
# Got started with arguments
COMMAND=$1;
if [[ "$COMMAND" == "n8n" ]]; then
shift
(cd packages/cli; exec node ./bin/n8n "$@")
else
exec node "$@"
fi
node "$@"
else
# Got started without arguments
cd packages/cli; exec node ./bin/n8n
# Got started without arguments
n8n
fi