n8n / Dockerfile
Alirezamp's picture
Update Dockerfile
668685b verified
raw
history blame contribute delete
644 Bytes
# Use the official Node.js image as the base
FROM node:latest
# Set working directory
WORKDIR /usr/src/app
# Set environment variables for n8n
ENV N8N_PORT=7860
ENV WEBHOOK_URL=https://Alirezamp-n8n-domain.hf.space/
ENV VUE_APP_URL_BASE_API=https://Alirezamp-n8n-domain.hf.space/
ENV N8N_RUNNERS_ENABLED=true
ENV PUPPETEER_SKIP_DOWNLOAD=true
ENV N8N_BASIC_AUTH_ACTIVE=true
ENV N8N_BASIC_AUTH_USER="amp"
ENV N8N_BASIC_AUTH_PASSWORD="amptoor"
ENV N8N_ENCRYPTION_KEY="AkYz6txw4qe+lCTU4Yslf1xNcn9vbwABIwMnqniamp9="
# Expose the port for n8n
EXPOSE 7860
# Install n8n globally
RUN npm install n8n -g --unsafe-perm=true
# Start n8n
CMD ["n8n"]