uses non-root user
This commit is contained in:
@@ -5,7 +5,7 @@ ARG N8N_VERSION
|
||||
RUN if [ -z "$N8N_VERSION" ] ; then echo "The N8N_VERSION argument is missing!" ; exit 1; fi
|
||||
|
||||
# Update everything and install needed dependencies
|
||||
RUN apk add --update graphicsmagick tzdata git
|
||||
RUN apk add --update graphicsmagick tzdata git tini su-exec
|
||||
|
||||
# # Set a custom user to not have n8n run as root
|
||||
USER root
|
||||
@@ -18,4 +18,5 @@ RUN apk --update add --virtual build-dependencies python build-base ca-certifica
|
||||
|
||||
WORKDIR /data
|
||||
|
||||
CMD ["n8n"]
|
||||
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
||||
ENTRYPOINT ["tini", "--", "/docker-entrypoint.sh"]
|
||||
|
||||
Reference in New Issue
Block a user