KenSensei commited on
Commit
b9ebffa
·
verified ·
1 Parent(s): e6a331e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -10
Dockerfile CHANGED
@@ -1,16 +1,13 @@
1
- FROM n8nio/n8n:latest
2
 
3
- # Switch to root to configure the port
4
  USER root
5
 
6
- # Set the port to 7860 (Required by Hugging Face)
7
- ENV N8N_PORT=7860
8
-
9
- # Expose the port
10
- EXPOSE 7860
11
 
12
- # Switch back to the 'node' user so the 'n8n' command is found
13
  USER node
14
 
15
- # Start n8n
16
- CMD ["n8n", "start"]
 
 
 
 
1
+ FROM docker.n8n.io/n8nio/n8n:latest
2
 
 
3
  USER root
4
 
5
+ RUN chown -R 1000:1000 /home/node/.n8n
 
 
 
 
6
 
 
7
  USER node
8
 
9
+ ENV N8N_PORT=7860
10
+
11
+ ENV N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
12
+
13
+ CMD ["start"]