GTO-Custom-AI commited on
Commit
6555923
·
verified ·
1 Parent(s): b0d48d5

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -6,7 +6,6 @@ ENV N8N_PORT=7860
6
  ENV N8N_PROTOCOL=https
7
 
8
  # POINT N8N TO THE PERSISTENT BUCKET
9
- # In HF Spaces, persistent storage is typically mounted at /data
10
  ENV N8N_USER_FOLDER=/data/.n8n
11
 
12
  # Set the user to a non-root user for security
@@ -17,5 +16,5 @@ USER 1000
17
  # Expose the HF port
18
  EXPOSE 7860
19
 
20
- # Start n8n
21
- CMD ["n8n", "start"]
 
6
  ENV N8N_PROTOCOL=https
7
 
8
  # POINT N8N TO THE PERSISTENT BUCKET
 
9
  ENV N8N_USER_FOLDER=/data/.n8n
10
 
11
  # Set the user to a non-root user for security
 
16
  # Expose the HF port
17
  EXPOSE 7860
18
 
19
+ # Use absolute path and a shell wrapper to ensure environment variables are expanded
20
+ CMD ["sh", "-c", "/usr/local/bin/n8n start"]