Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

change docker pipeline

Max Deichmannc1be5bfba67a
diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml
index 067ff9a299..6e6efcfc4c 100644
--- a/.github/workflows/pipeline.yml
+++ b/.github/workflows/pipeline.yml
@@ -35,9 +35,9 @@ jobs:
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
runs-on: ubuntu-latest
env:
- DATABASE_URL: postgres://postgres:postgres@localhost:5432/langfuse
+ DATABASE_URL: postgresql://postgres:postgres@localhost:5432/postgres
NEXTAUTH_SECRET: "secret"
- NEXTAUTH_URL: "http://localhost:3000/api"
+ NEXTAUTH_URL: "http://localhost:3030"
steps:
- name: Setup node
diff --git a/Dockerfile b/Dockerfile
index ff14ec0aba..7917dbd020 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -6,6 +6,10 @@ ARG NEXTAUTH_URL
# Install dependencies only when needed
FROM base AS deps
+ARG DATABASE_URL
+ARG NEXTAUTH_SECRET
+ARG NEXTAUTH_URL
+
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat
WORKDIR /app
@@ -22,6 +26,10 @@ RUN \
# Rebuild the source code only when needed
FROM base AS builder
+ARG DATABASE_URL
+ARG NEXTAUTH_SECRET
+ARG NEXTAUTH_URL
+
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
@@ -39,6 +47,10 @@ RUN npm run build
# Production image, copy all the files and run next
FROM base AS runner
+ARG DATABASE_URL
+ARG NEXTAUTH_SECRET
+ARG NEXTAUTH_URL
+
WORKDIR /app
ENV NODE_ENV production
diff --git a/README.md b/README.md
index 725eb4fad3..c08816574b 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,3 @@
-
<div align="center">
<a href="https://langfuse.com">
<img alt="langfuse Logo" src="https://github.com/langfuse/langfuse/blob/main/readme.png" alt="Logo" width="400">
@@ -11,7 +10,6 @@
</p>
</div>
-
# 🧐Introduction
Debug and improve your LLM-based application by logging/analyzing all user interactions, backend traces, and explicit/implicit user feedback.
@@ -76,7 +74,7 @@ The following instructions explain how to create a single container for deployme
```bash
# build the container
docker build \
---build-arg DATABASE_URL=postgresql://postgres:postgres@localhost:5432/postgres \
+--build-arg DATABASE_URL=postgresql://postgres:[email protected]:5432/postgres \
--build-arg NEXTAUTH_SECRET=mysecret \
--build-arg NEXTAUTH_URL=http:localhost:3030 \
-t langfuse .