holy shit I'm dumb

This commit is contained in:
2025-12-24 11:07:22 -08:00
parent bb38247324
commit 3278fd76fc
2 changed files with 14 additions and 12 deletions

View File

@@ -2,18 +2,7 @@ FROM n8nio/runners:latest
USER root USER root
RUN cd /opt/runners/task-runner-python && uv pip install fantraxapi RUN cd /opt/runners/task-runner-python && uv pip install fantraxapi
RUN cat >/etc/n8n-task-runners.json <<EOL RUN cat >/etc/n8n-task-runners.json <<EOL
{ COPY n8n-task-runners.json /etc/n8n-task-runners.json
"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 EOL
USER runner USER runner

13
n8n-task-runners.json Normal file
View File

@@ -0,0 +1,13 @@
{
"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
}
}
]
}