Files
n8n-runner-custom/Dockerfile
2025-12-24 11:02:02 -08:00

20 lines
541 B
Docker

FROM n8nio/runners:latest
USER root
RUN cd /opt/runners/task-runner-python && uv pip install fantraxapi
RUN cat >/etc/n8n-task-runners.json <<EOL
{
"task-runners": [
{
"runner-type": "python",
"env-overrides": {
"PYTHONPATH": "/opt/runners/task-runner-python",
"N8N_RUNNERS_STDLIB_ALLOW": "json", // <-- allowlist Python standard library packages here
"N8N_RUNNERS_EXTERNAL_ALLOW": "fantraxapi" // <-- allowlist third-party Python packages here
}
}
]
}
EOL
USER runner