hatim-n8n-hub / Dockerfile
hatimc21's picture
Ultra-minimal Dockerfile - use n8n defaults
e399f8d
raw
history blame contribute delete
490 Bytes
FROM n8nio/n8n:latest
# Set environment variables for HuggingFace Spaces
ENV N8N_HOST=0.0.0.0
ENV N8N_PORT=7860
ENV N8N_PROTOCOL=http
ENV N8N_DISABLE_UI=false
ENV N8N_BASIC_AUTH_ACTIVE=false
ENV N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=false
# Copy workflows to the expected location
USER root
COPY workflows/ /home/node/.n8n/workflows/
RUN chown -R node:node /home/node/.n8n
# Switch back to node user (as per n8n default)
USER node
# Expose the port that HuggingFace expects
EXPOSE 7860