1
1
mirror of https://github.com/n8n-io/n8n.git synced 2024-09-20 01:19:07 +03:00

fix(docker): n8n docker image needs su-exec (#3993)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2022-09-01 09:48:26 +02:00 committed by GitHub
parent 34a99fd089
commit aec2489aef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -20,5 +20,6 @@ RUN set -eux; \
# Set a custom user to not have n8n run as root
USER root
WORKDIR /data
RUN apk --no-cache add su-exec
COPY docker-entrypoint.sh /docker-entrypoint.sh
ENTRYPOINT ["tini", "--", "/docker-entrypoint.sh"]

View File

@ -13,5 +13,5 @@ if [ "$#" -gt 0 ]; then
exec su-exec node "$@"
else
# Got started without arguments
exec su-exec n8n
exec su-exec node n8n
fi