mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(docker): n8n docker image needs su-exec (#3993)
This commit is contained in:
committed by
GitHub
parent
34a99fd089
commit
aec2489aef
@@ -20,5 +20,6 @@ RUN set -eux; \
|
|||||||
# Set a custom user to not have n8n run as root
|
# Set a custom user to not have n8n run as root
|
||||||
USER root
|
USER root
|
||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
|
RUN apk --no-cache add su-exec
|
||||||
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
||||||
ENTRYPOINT ["tini", "--", "/docker-entrypoint.sh"]
|
ENTRYPOINT ["tini", "--", "/docker-entrypoint.sh"]
|
||||||
|
|||||||
@@ -13,5 +13,5 @@ if [ "$#" -gt 0 ]; then
|
|||||||
exec su-exec node "$@"
|
exec su-exec node "$@"
|
||||||
else
|
else
|
||||||
# Got started without arguments
|
# Got started without arguments
|
||||||
exec su-exec n8n
|
exec su-exec node n8n
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user