AnishaG0201 commited on
Commit
20b52b0
·
verified ·
1 Parent(s): 1a0e201

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -7,11 +7,12 @@ ENV N8N_HOST="0.0.0.0"
7
  ENV N8N_BASIC_AUTH_ACTIVE=true
8
  ENV N8N_BASIC_AUTH_USER="admin"
9
  ENV N8N_BASIC_AUTH_PASSWORD="password"
 
10
 
11
  # Ensure correct permissions for the installation
12
  USER root
13
 
14
- # Set up n8n to install as root, avoiding permission issues
15
  RUN npm install -g n8n --unsafe-perm=true
16
 
17
  # Expose the port n8n will run on
@@ -19,4 +20,3 @@ EXPOSE 7860
19
 
20
  # Start n8n
21
  CMD ["n8n", "start"]
22
-
 
7
  ENV N8N_BASIC_AUTH_ACTIVE=true
8
  ENV N8N_BASIC_AUTH_USER="admin"
9
  ENV N8N_BASIC_AUTH_PASSWORD="password"
10
+ ENV N8N_ENCRYPTION_KEY="lkYz6txw4qe+lCTU4Yslf1xNcn9vbwABIwMnqniv6t4="
11
 
12
  # Ensure correct permissions for the installation
13
  USER root
14
 
15
+ # Install n8n
16
  RUN npm install -g n8n --unsafe-perm=true
17
 
18
  # Expose the port n8n will run on
 
20
 
21
  # Start n8n
22
  CMD ["n8n", "start"]