goldfishsoftwarelabs commited on
Commit
58945eb
·
verified ·
1 Parent(s): 594f55f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -4
Dockerfile CHANGED
@@ -1,17 +1,30 @@
1
  FROM n8nio/n8n:1.65.2
2
 
3
- # Set working directory
4
  WORKDIR /data
5
 
6
  # Expose n8n's default port
7
  EXPOSE 5678
8
 
9
- # Set environment variables to fix permissions warning and ensure proper execution
10
- ENV N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
11
  ENV N8N_HOST=0.0.0.0
12
  ENV N8N_PORT=5678
13
  ENV N8N_PROTOCOL=http
 
 
 
 
 
 
 
 
 
 
 
 
 
14
 
15
  # Explicitly set entrypoint to n8n binary
16
  ENTRYPOINT ["/usr/local/bin/n8n"]
17
- CMD ["start"]
 
 
1
  FROM n8nio/n8n:1.65.2
2
 
3
+ # Set working directory for n8n data
4
  WORKDIR /data
5
 
6
  # Expose n8n's default port
7
  EXPOSE 5678
8
 
9
+ # Set environment variables for robust n8n configuration
 
10
  ENV N8N_HOST=0.0.0.0
11
  ENV N8N_PORT=5678
12
  ENV N8N_PROTOCOL=http
13
+ # Run in production mode to optimize performance
14
+ ENV NODE_ENV=production
15
+ # Disable telemetry to reduce resource usage
16
+ ENV N8N_DIAGNOSTICS_ENABLED=false
17
+ # Enable health check endpoint for Spaces
18
+ ENV N8N_HEALTHCHECK_ENABLED=true
19
+ # Fix permissions for config file
20
+ ENV N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
21
+ # Increase log level for debugging
22
+ ENV N8N_LOG_LEVEL=info
23
+ # Ensure SQLite is used (default, no persistence needed)
24
+ ENV DB_TYPE=sqlite
25
+ ENV DB_SQLITE_VACUUM_ON_STARTUP=true
26
 
27
  # Explicitly set entrypoint to n8n binary
28
  ENTRYPOINT ["/usr/local/bin/n8n"]
29
+ # Run in foreground mode
30
+ CMD ["start", "--frontend"]