FROM n8nio/n8n:latest USER root # Ensure the node user has access to its home directory RUN mkdir -p /home/node/.n8n && chmod -R 777 /home/node/.n8n # Hugging Face uses port 7860 ENV N8N_PORT=7860 EXPOSE 7860 # Revert to the official n8n entrypoint which handles the paths correctly ENTRYPOINT ["tini", "--", "/docker-entrypoint.sh"]