holy shit I'm dumb
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -2,18 +2,7 @@ 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
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
COPY n8n-task-runners.json /etc/n8n-task-runners.json
|
||||
EOL
|
||||
USER runner
|
||||
|
||||
|
||||
Reference in New Issue
Block a user