testdeep123 commited on
Commit
a400f51
·
verified ·
1 Parent(s): 644484d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -6
Dockerfile CHANGED
@@ -1,8 +1,18 @@
1
- FROM docker.n8n.io/n8nio/n8n
2
 
3
- # Set the home directory to /data for persistence in Hugging Face Spaces
4
- ENV HOME=/data
5
 
6
- # Disable user management to run without authentication
7
- ENV N8N_USER_MANAGEMENT_DISABLED=true
8
- CMD ["start"]
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:18
2
 
3
+ # Set working directory
4
+ WORKDIR /app
5
 
6
+ # Install n8n
7
+ RUN npm install -g n8n
8
+
9
+ # Environment variables
10
+ ENV DB_TYPE=sqlite
11
+ ENV N8N_HOST=0.0.0.0
12
+ ENV N8N_PORT=7860
13
+
14
+ # Expose the default port for Hugging Face Spaces
15
+ EXPOSE 7860
16
+
17
+ # Run n8n
18
+ CMD ["n8n"]