n8n/docker/images/n8n-ubuntu/Dockerfile

22 lines
480 B
Docker
Raw Normal View History

FROM node:12.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 && \
2020-02-05 12:28:47 -08:00
apt-get -y install graphicsmagick gosu
2020-01-02 11:59:55 -08:00
# Set a custom user to not have n8n run as root
USER root
2020-03-26 10:05:23 -07:00
RUN npm_config_user=root npm install -g full-icu n8n@${N8N_VERSION}
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"]