nnn / Dockerfile
nexacore's picture
Update Dockerfile
7b34fdb verified
raw
history blame contribute delete
743 Bytes
FROM node:20-alpine
RUN apk add --no-cache \
chromium \
nss \
ffmpeg \
curl \
wget \
bash \
yarn \
python3 \
py3-pip \
libc6-compat \
yt-dlp
USER node
WORKDIR /home/node
RUN yarn global add n8n@latest
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=admin123
ENV N8N_ENCRYPTION_KEY=randomlongstringhere
ENV N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
# Replace 'your-username/your-space-name' with your real space path
ENV WEBHOOK_URL=https://nexacore-nnn.hf.space/
ENV N8N_EDITOR_BASE_URL=https://nexacore-nnn.hf.space/
EXPOSE 7860
# 🛠 Ensure n8n has a config folder, then start
CMD ["sh", "-c", "mkdir -p ~/.n8n && npx n8n start"]