mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
ci: Make custom images consistent with the release images (no-changelog) (#4924)
This commit is contained in:
parent
1bc3930df8
commit
c7b36ecfb2
|
@ -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 \
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue