derek-thomas commited on
Commit
9a4d653
·
verified ·
1 Parent(s): bd3d403

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -2
Dockerfile CHANGED
@@ -3,8 +3,7 @@ FROM docker.n8n.io/n8nio/n8n:latest
3
 
4
  # Use the secret securely during the build process
5
  RUN --mount=type=secret,id=N8N_AUTH_PASSWORD,mode=0444,required=true \
6
- echo "N8N_BASIC_AUTH_PASSWORD=$(cat /run/secrets/N8N_AUTH_PASSWORD)" >> /etc/environment
7
-
8
 
9
  # Set environment variables for n8n
10
  ENV GENERIC_TIMEZONE="Asia/Dubai" \
 
3
 
4
  # Use the secret securely during the build process
5
  RUN --mount=type=secret,id=N8N_AUTH_PASSWORD,mode=0444,required=true \
6
+ export N8N_BASIC_AUTH_PASSWORD=$(cat /run/secrets/N8N_AUTH_PASSWORD)
 
7
 
8
  # Set environment variables for n8n
9
  ENV GENERIC_TIMEZONE="Asia/Dubai" \