🔀 Merge branch 'patch-1' of https://github.com/deurk/n8n into deurk-patch-1

This commit is contained in:
Jan Oberhauser 2019-10-26 20:40:26 +02:00
commit 6230cde952
2 changed files with 10 additions and 3 deletions

View file

@ -5,8 +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 \ RUN apk add --update graphicsmagick tzdata
graphicsmagick
# # 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
@ -19,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"]

View file

@ -0,0 +1,5 @@
#!/bin/sh
ln -s "/usr/share/zoneinfo/${GENERIC_TIMEZONE:-America/New_York}" /etc/localtime
exec "$@"