Echo-ai commited on
Commit
f6c35af
·
verified ·
1 Parent(s): 800027a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -8
Dockerfile CHANGED
@@ -1,16 +1,16 @@
1
  FROM docker.n8n.io/n8nio/n8n:latest
2
 
3
- # Set required environment variables
4
- ENV N8N_HOST=0.0.0.0
5
- ENV N8N_PORT=7860
6
- ENV N8N_PROTOCOL=https
7
-
8
- # Create persistent storage directory (matches Hugging Face's /data requirement)
9
  RUN mkdir -p /data && \
10
  chown -R node:node /data
11
 
12
- # Switch to non-root user (Hugging Face requirement)
 
 
 
 
 
13
  USER node
14
 
15
- # Expose default port for Hugging Face Spaces
16
  EXPOSE 7860
 
1
  FROM docker.n8n.io/n8nio/n8n:latest
2
 
3
+ # Create persistent storage with proper permissions
 
 
 
 
 
4
  RUN mkdir -p /data && \
5
  chown -R node:node /data
6
 
7
+ # Required environment variables
8
+ ENV N8N_HOST=0.0.0.0
9
+ ENV N8N_PORT=7860
10
+ ENV N8N_PROTOCOL=https
11
+
12
+ # Use non-root user
13
  USER node
14
 
15
+ # Expose Hugging Face's required port
16
  EXPOSE 7860