File size: 569 Bytes
336c53c
11f7166
0fbf46a
 
01c5f83
0fbf46a
63cd170
01c5f83
 
949b278
 
 
 
41e1d41
0fbf46a
 
06ee05b
0fbf46a
062c443
 
 
27e23aa
062c443
 
b8b5d5f
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM node:22

# Install n8n and jsdom globally
RUN npm install -g n8n jsdom

# Define volume mounts for persistence
VOLUME ["/var/run/docker.sock", "/root/data/home/node/.n8n"]

# Set environment variables for n8n
ENV N8N_HOST=shayanrl-n8n.hf.space \
    N8N_PORT=7860 \
    N8N_PROTOCOL=https \
    NODE_ENV=production \
    WEBHOOK_URL=https://shayanrl-n8n.hf.space \
    N8N_USER_FOLDER=/data/shayan/n8n \
    NODE_FUNCTION_ALLOW_BUILTIN=* \
    NODE_FUNCTION_ALLOW_EXTERNAL=jsdom

# Expose the port for n8n
EXPOSE 7860


# Command to run n8n
CMD ["n8n", "start"]

#