Spaces:
Paused
Paused
# Use the official n8n Docker image as the base | |
FROM n8nio/n8n:latest | |
# Set necessary environment variables for n8n | |
ENV N8N_PORT=7860 | |
ENV N8N_HOST="0.0.0.0" | |
ENV N8N_BASIC_AUTH_ACTIVE=true | |
ENV N8N_BASIC_AUTH_USER="admin" | |
ENV N8N_BASIC_AUTH_PASSWORD="password" | |
ENV N8N_ENCRYPTION_KEY="lkYz6txw4qe+lCTU4Yslf1xNcn9vbwABIwMnqniv6t4=" | |
# Ensure correct permissions for the installation | |
USER root | |
# Install n8n | |
RUN npm install -g n8n --unsafe-perm=true | |
# Expose the port n8n will run on | |
EXPOSE 7860 | |
# Start n8n | |
CMD ["n8n", "start"] | |