mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 05:17:28 -08:00
🐳 Add Raspberry Pi Docker image
This commit is contained in:
parent
62612d0ad4
commit
559afb488b
5
.github/workflows/docker-images.yml
vendored
5
.github/workflows/docker-images.yml
vendored
|
@ -32,3 +32,8 @@ jobs:
|
|||
run: docker build --build-arg N8N_VERSION=${{steps.vars.outputs.tag}} -t n8nio/n8n:${{steps.vars.outputs.tag}}-ubuntu docker/images/n8n-ubuntu
|
||||
- name: Push Docker image of version (Ubuntu)
|
||||
run: docker push n8nio/n8n:${{steps.vars.outputs.tag}}-ubuntu
|
||||
|
||||
- name: Build the Docker image of version (Rpi)
|
||||
run: docker build --build-arg N8N_VERSION=${{steps.vars.outputs.tag}} -t n8nio/n8n:${{steps.vars.outputs.tag}}-rpi docker/images/n8n-rpi
|
||||
- name: Push Docker image of version (Rpi)
|
||||
run: docker push n8nio/n8n:${{steps.vars.outputs.tag}}-rpi
|
||||
|
|
20
docker/images/n8n-rpi/Dockerfile
Normal file
20
docker/images/n8n-rpi/Dockerfile
Normal file
|
@ -0,0 +1,20 @@
|
|||
FROM arm32v7/node:12.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 gosu
|
||||
|
||||
RUN npm_config_user=root npm install -g full-icu n8n@${N8N_VERSION}
|
||||
|
||||
ENV NODE_ICU_DATA /usr/local/lib/node_modules/full-icu
|
||||
ENV NODE_ENV production
|
||||
|
||||
WORKDIR /data
|
||||
|
||||
USER node
|
||||
|
||||
CMD n8n
|
21
docker/images/n8n-rpi/README.md
Normal file
21
docker/images/n8n-rpi/README.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
## n8n - Raspberry PI Docker Image
|
||||
|
||||
Dockerfile to build n8n for Raspberry PI.
|
||||
|
||||
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-rpi .
|
||||
```
|
||||
|
||||
```
|
||||
docker run -it --rm \
|
||||
--name n8n \
|
||||
-p 5678:5678 \
|
||||
n8nio/n8n:0.70.0-rpi
|
||||
```
|
Loading…
Reference in a new issue