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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -7
Dockerfile CHANGED
@@ -1,16 +1,17 @@
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
 
1
  FROM docker.n8n.io/n8nio/n8n:latest
2
 
3
+ # Temporarily switch to root for directory setup
4
+ USER root
5
+ RUN mkdir -p /data && chown -R node:node /data
6
+ USER node
7
 
8
+ # Required Hugging Face Space configuration
9
  ENV N8N_HOST=0.0.0.0
10
  ENV N8N_PORT=7860
11
  ENV N8N_PROTOCOL=https
12
 
13
+ # Use Hugging Face's persistent storage path
14
+ VOLUME /data
15
+ WORKDIR /data
16
 
 
17
  EXPOSE 7860