mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
🐳 Add Ubuntu Docker Image
This commit is contained in:
18
docker/images/n8n-ubuntu/Dockerfile
Normal file
18
docker/images/n8n-ubuntu/Dockerfile
Normal 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"
|
||||
21
docker/images/n8n-ubuntu/README.md
Normal file
21
docker/images/n8n-ubuntu/README.md
Normal 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
|
||||
```
|
||||
Reference in New Issue
Block a user