Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files12345678910111213141516171819202122232425# We switch to the 'debian' tag which is much easier to customizeFROM n8nio/n8n:latest-debianUSER root# 1. Update and install Python 3RUN apt-get update && apt-get install -y \python3 \python3-pip \python3-venv \&& rm -rf /var/lib/apt/lists/*# 2. Setup the virtual environment for n8n to useRUN 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 port configurationENV N8N_PORT=7860EXPOSE 7860# Use the official n8n entrypointENTRYPOINT ["tini", "--", "/docker-entrypoint.sh"]123456789101112FROM 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# Hugging Face uses port 7860ENV N8N_PORT=7860EXPOSE 7860# Revert to the official n8n entrypoint which handles the paths correctlyENTRYPOINT ["tini", "--", "/docker-entrypoint.sh"]
Dockerfile+4-17