mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 05:04:05 -08:00
398adb23e8
* reduce redundant code between the two alpine Dockerfiles * reduce the docker image build times * reduce the `n8n` image size from 1.17GB to 462MB * reduce the `n8n-custom` image size from 671MB to 460MB * reduce the size of npm tree by making all typing packages devDependencies Partially resolves this ticket: N8N-3252
17 lines
284 B
Bash
Executable file
17 lines
284 B
Bash
Executable file
#!/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
|
|
|
|
else
|
|
# Got started without arguments
|
|
cd packages/cli; exec node ./bin/n8n
|
|
fi
|