Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files1234567891011FROM n8nio/n8n:latestUSER root# Ensure the node user has access to its home directoryRUN mkdir -p /home/node/.n8n && chmod -R 777 /home/node/.n8n# Explicitly set the path for n8nENV N8N_PORT=7860EXPOSE 7860ENTRYPOINT ["tini", "--", "/docker-entrypoint.sh"]123456789101112131415161718192021FROM n8nio/n8n:latestUSER root# 1. Install Python and Pip# We use apk (Alpine's package manager) to add python3 and common toolsRUN apk add --update --no-cache python3 py3-pip build-base python3-dev# 2. Setup a virtual environment (Good practice for Python 3.11+)RUN python3 -m venv /opt/venvENV PATH="/opt/venv/bin:$PATH"# 3. Ensure the node user has access to its home directoryRUN mkdir -p /home/node/.n8n && chmod -R 777 /home/node/.n8n# Hugging Face uses port 7860ENV N8N_PORT=7860EXPOSE 7860# Use the official n8n entrypointENTRYPOINT ["tini", "--", "/docker-entrypoint.sh"]
Dockerfile+12-2