Leodass1433 commited on
Commit
0e18b57
·
verified ·
1 Parent(s): 2d86c2b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -2
Dockerfile CHANGED
@@ -1,7 +1,12 @@
1
- FROM library/n8n:latest
 
2
 
3
- # Hugging Face Spaces strictly require the container to listen on Port 7860
 
 
 
4
  ENV N8N_PORT=7860
5
  EXPOSE 7860
6
 
 
7
  CMD ["n8n", "start"]
 
1
+ # Step 1: Use a standard, universally trusted Node.js base image
2
+ FROM node:18-alpine
3
 
4
+ # Step 2: Install n8n globally using npm
5
+ RUN npm install -g n8n@latest
6
+
7
+ # Step 3: Configure Hugging Face port mappings
8
  ENV N8N_PORT=7860
9
  EXPOSE 7860
10
 
11
+ # Step 4: Start the application
12
  CMD ["n8n", "start"]