n8n/docker/images/n8n-debian/Dockerfile

24 lines
509 B
Docker
Raw Normal View History

FROM node:16
2020-01-02 11:59:55 -08:00
ARG N8N_VERSION
RUN if [ -z "$N8N_VERSION" ] ; then echo "The N8N_VERSION argument is missing!" ; exit 1; fi
RUN \
apt-get update && \
apt-get -y install graphicsmagick gosu git
2020-01-02 11:59:55 -08:00
# Set a custom user to not have n8n run as root
USER root
RUN npm_config_user=root npm install -g npm@latest full-icu n8n@${N8N_VERSION}
2020-03-26 10:05:23 -07:00
ENV NODE_ICU_DATA /usr/local/lib/node_modules/full-icu
2020-01-02 11:59:55 -08:00
WORKDIR /data
2020-02-05 12:28:47 -08:00
COPY docker-entrypoint.sh /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
2020-06-30 07:55:17 -07:00
EXPOSE 5678/tcp