education-chat / Dockerfile
zuleleee's picture
Update Dockerfile
373c925 verified
Raw
History Blame Contribute Delete
554 Bytes
# Dockerfile for n8n workflow automation tool on Hugging Face Spaces
FROM n8nio/n8n:latest
# Set working directory
WORKDIR /home/node
# Hugging Face Spaces uses port 7860 by default
# Use PORT environment variable if provided, otherwise default to 7860
ENV PORT=7860
ENV N8N_PORT=${PORT}
ENV N8N_HOST=0.0.0.0
ENV N8N_PROTOCOL=http
ENV WEBHOOK_URL=http://0.0.0.0:${PORT}/
# Expose the port (Hugging Face Spaces expects 7860)
EXPOSE 7860
# The base image already has the entrypoint configured
# n8n will automatically use N8N_PORT environment variable