mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
Added entrypoint
Setting up TZ and GENERIC_TIMEZONE env vars required to use an entrypoint script
This commit is contained in:
@@ -5,9 +5,7 @@ ARG N8N_VERSION
|
|||||||
RUN if [ -z "$N8N_VERSION" ] ; then echo "The N8N_VERSION argument is missing!" ; exit 1; fi
|
RUN if [ -z "$N8N_VERSION" ] ; then echo "The N8N_VERSION argument is missing!" ; exit 1; fi
|
||||||
|
|
||||||
# Update everything and install needed dependencies
|
# Update everything and install needed dependencies
|
||||||
RUN apk add --update --no-cache \
|
RUN apk add --update graphicsmagick tzdata
|
||||||
graphicsmagick tzdata
|
|
||||||
ENV TZ Europe/Berlin
|
|
||||||
|
|
||||||
# # 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
|
||||||
@@ -20,4 +18,7 @@ RUN apk --update add --virtual build-dependencies python build-base && \
|
|||||||
|
|
||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
|
|
||||||
CMD "n8n"
|
COPY docker-entrypoint.sh /usr/local/bin/
|
||||||
|
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||||
|
|
||||||
|
CMD ["n8n"]
|
||||||
|
|||||||
Reference in New Issue
Block a user