FROM node:20-slim # Install n8n globally RUN npm install -g n8n # Create working directory WORKDIR /app # Copy workflows and entrypoint COPY workflows /app/workflows COPY entrypoint.sh /app/entrypoint.sh RUN chmod +x /app/entrypoint.sh # HF requires app to listen on 7860 ENV N8N_PORT=7860 ENV N8N_LISTEN_ADDRESS=0.0.0.0 EXPOSE 7860 CMD ["/app/entrypoint.sh"]