Spaces:
Paused
Paused
Update Dockerfile
Browse files- 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=
|
| 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 ["
|
|
|
|
| 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"]
|