holy shit I'm dumb
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -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
13
n8n-task-runners.json
Normal 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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user