Spaces:
Sleeping
Sleeping
FROM docker.n8n.io/n8nio/n8n:latest | |
# Temporarily switch to root for directory setup | |
USER root | |
RUN mkdir -p /data && chown -R node:node /data | |
USER node | |
# Required Hugging Face Space configuration | |
ENV N8N_HOST=0.0.0.0 | |
ENV N8N_PORT=7860 | |
ENV N8N_PROTOCOL=https | |
# Use Hugging Face's persistent storage path | |
VOLUME /data | |
WORKDIR /data | |
EXPOSE 7860 | |