N8N_Automation / Dockerfile
AnishaG0201's picture
Update Dockerfile
b6c6ebb verified
raw
history blame contribute delete
488 Bytes
# Use the official Node.js image as the base
FROM node:18
# Set working directory
WORKDIR /usr/src/app
# Install n8n globally
RUN npm install -g n8n --unsafe-perm=true
# Set 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="
# Expose the port for n8n
EXPOSE 7860
# Start n8n
CMD ["n8n"]