20 lines
541 B
Docker
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
|
|
|