first commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
FROM n8nio/runners:stable
|
||||
|
||||
USER root
|
||||
COPY requirements.txt /tmp/requirements.txt
|
||||
|
||||
# Установка Python пакетов через uv из requirements.txt
|
||||
RUN if [ -f /tmp/requirements.txt ]; then \
|
||||
echo "Installing Python packages from requirements.txt using uv..." && \
|
||||
echo "Contents:" && \
|
||||
cat /tmp/requirements.txt && \
|
||||
cd /opt/runners/task-runner-python && \
|
||||
uv pip install -r /tmp/requirements.txt && \
|
||||
echo "Python packages installed successfully"; \
|
||||
else \
|
||||
echo "No requirements.txt found, skipping Python packages installation"; \
|
||||
fi
|
||||
|
||||
# Установка JavaScript пакетов
|
||||
RUN cd /opt/runners/task-runner-javascript && \
|
||||
echo "Installing JS packages..." && \
|
||||
pnpm add moment uuid && \
|
||||
echo "JS packages installed successfully"
|
||||
|
||||
COPY n8n-task-runners.json /etc/n8n-task-runners.json
|
||||
|
||||
USER runner
|
||||
Reference in New Issue
Block a user