mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-26 12:01:16 -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
|
# 2. Start with a new clean image with just the code that is needed to run n8n
|
||||||
FROM n8nio/base:${NODE_VERSION}
|
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 /
|
COPY docker/images/n8n-custom/docker-entrypoint.sh /
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
|
|
|
@ -1,16 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ "$#" -gt 0 ]; then
|
if [ "$#" -gt 0 ]; then
|
||||||
# Got started with arguments
|
# Got started with arguments
|
||||||
COMMAND=$1;
|
node "$@"
|
||||||
|
|
||||||
if [[ "$COMMAND" == "n8n" ]]; then
|
|
||||||
shift
|
|
||||||
(cd packages/cli; exec node ./bin/n8n "$@")
|
|
||||||
else
|
|
||||||
exec node "$@"
|
|
||||||
fi
|
|
||||||
|
|
||||||
else
|
else
|
||||||
# Got started without arguments
|
# Got started without arguments
|
||||||
cd packages/cli; exec node ./bin/n8n
|
n8n
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue