🐳 Add Ubuntu Docker Image

This commit is contained in:
Jan Oberhauser
2020-01-02 13:59:55 -06:00
parent 9f03c9d2aa
commit 7707312715
3 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
FROM node:10.16
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
# Set a custom user to not have n8n run as root
USER root
RUN npm_config_user=root npm install -g n8n@${N8N_VERSION}
WORKDIR /data
CMD "n8n"

View File

@@ -0,0 +1,21 @@
## n8n - Ubuntu Docker Image
Dockerfile to build n8n with Ubuntu.
For information about how to run n8n with Docker check the generic
[Docker-Readme](https://github.com/n8n-io/n8n/tree/master/docker/images/n8n/README.md)
```
docker build --build-arg N8N_VERSION=<VERSION> -t n8nio/n8n:<VERSION> .
# For example:
docker build --build-arg N8N_VERSION=0.43.0 -t n8nio/n8n:0.43.0-ubuntu .
```
```
docker run -it --rm \
--name n8n \
-p 5678:5678 \
n8nio/n8n:0.43.0-ubuntu
```