First Custom version
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
FROM n8nio/runners:latest
|
||||||
|
LABEL authors="stephane.david"
|
||||||
|
USER root
|
||||||
|
RUN cd /opt/runners/task-runner-javascript && pnpm add moment uuid
|
||||||
|
RUN cd /opt/runners/task-runner-python && uv pip install numpy pandas pikepdf
|
||||||
|
COPY n8n-task-runners.json /etc/n8n-task-runners.json
|
||||||
|
USER runner
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
docker build .
|
||||||
|
docker login gitea.sda.zone
|
||||||
|
docker tag n8n-runners:custom gitea.sda.zone/stephane.david/n8n-runners:custom
|
||||||
|
docker push gitea.sda.zone/stephane.david/n8n-runners:custom
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"task-runners": [
|
||||||
|
{
|
||||||
|
"runner-type": "javascript",
|
||||||
|
"env-overrides": {
|
||||||
|
"NODE_FUNCTION_ALLOW_BUILTIN": "crypto",
|
||||||
|
"NODE_FUNCTION_ALLOW_EXTERNAL": "moment,uuid"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"runner-type": "python",
|
||||||
|
"env-overrides": {
|
||||||
|
"PYTHONPATH": "/opt/runners/task-runner-python",
|
||||||
|
"N8N_RUNNERS_STDLIB_ALLOW": "json",
|
||||||
|
"N8N_RUNNERS_EXTERNAL_ALLOW": "numpy,pandas,pikepdf,io"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user