OptiCastDigital commited on
Commit
597cce7
·
verified ·
1 Parent(s): 28f0481

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -7
Dockerfile CHANGED
@@ -1,18 +1,18 @@
1
- # Node 20 base (n8n requires >=20.19)
2
  FROM node:20-bullseye-slim
3
 
4
  # Install dependencies
5
  RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
6
 
7
- # Install n8n globally
8
  RUN npm install -g n8n@2.3.5
9
 
10
- # Environment variables (can be overridden by HF Secrets)
 
 
 
11
  ENV N8N_PORT=7860
12
  ENV N8N_HOST=0.0.0.0
13
  ENV NODE_ENV=production
14
 
15
- EXPOSE 7860
16
-
17
- # Run n8n with tunneling
18
- CMD ["n8n", "start", "--tunnel", "--host=0.0.0.0", "--port=7860"]
 
 
1
  FROM node:20-bullseye-slim
2
 
3
  # Install dependencies
4
  RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
5
 
6
+ # Install n8n
7
  RUN npm install -g n8n@2.3.5
8
 
9
+ # Expose port
10
+ EXPOSE 7860
11
+
12
+ # Set environment variables
13
  ENV N8N_PORT=7860
14
  ENV N8N_HOST=0.0.0.0
15
  ENV NODE_ENV=production
16
 
17
+ # Start n8n
18
+ CMD ["n8n", "start", "--tunnel"]