Chris4K commited on
Commit
074dced
·
verified ·
1 Parent(s): 7eaf6a0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -5,12 +5,15 @@ RUN openssl rand -base64 32 > /nextauth_secret.txt
5
 
6
  # Set required environment variables
7
  ENV DATABASE_URL=postgresql://postgres:postgres@localhost:5432/langfuse
8
- ENV NEXTAUTH_SECRET=$(cat /nextauth_secret.txt)
9
  ENV POSTGRES_PASSWORD=postgres
10
  ENV POSTGRES_DB=langfuse
11
 
 
 
 
12
  # Expose the port Langfuse runs on
13
  EXPOSE 3000
14
 
15
  # Start Langfuse
16
- CMD ["sh", "-c", "langfuse"]
 
5
 
6
  # Set required environment variables
7
  ENV DATABASE_URL=postgresql://postgres:postgres@localhost:5432/langfuse
8
+ ENV NEXTAUTH_SECRET=secret_from_file
9
  ENV POSTGRES_PASSWORD=postgres
10
  ENV POSTGRES_DB=langfuse
11
 
12
+ # Read the secret into the environment variable
13
+ RUN export NEXTAUTH_SECRET=$(cat /nextauth_secret.txt)
14
+
15
  # Expose the port Langfuse runs on
16
  EXPOSE 3000
17
 
18
  # Start Langfuse
19
+ CMD ["langfuse"]