n8n/docker/images/n8n-custom/docker-entrypoint.sh
कारतोफ्फेलस्क्रिप्ट™ 398adb23e8
feat(docker): reduce the size of alpine docker images (#3973)
* 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
2022-08-31 15:25:52 +02:00

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