Skip to content

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

chore: adjust devcontainer setup to install deps via dockerfile (#8399)

Steffen Schmitz6f9338993678
diff --git a/.devcontainer.json b/.devcontainer.json
deleted file mode 100644
index 224b42cddb..0000000000
--- a/.devcontainer.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "name": "langfuse-development",
- "forwardPorts": [3000, 5432, 6379, 8123, 9000],
- "onCreateCommand": "npm install -g [email protected]",
- "postCreateCommand": "curl -L https://github.com/golang-migrate/migrate/releases/download/v4.18.3/migrate.linux-amd64.tar.gz | tar xvz && git restore LICENSE README.md && chmod +x migrate && sudo mv migrate /usr/bin && cp .env.dev.example .env && npm install -g @anthropic-ai/claude-code && pnpm i"
-}
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
new file mode 100644
index 0000000000..87b9633a99
--- /dev/null
+++ b/.devcontainer/Dockerfile
@@ -0,0 +1,13 @@
+# Dev container Dockerfile
+FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:20-bookworm
+
+# Install golang-migrate for database migrations
+RUN curl -L https://github.com/golang-migrate/migrate/releases/download/v4.18.3/migrate.linux-amd64.tar.gz | tar xvz && \
+ chmod +x migrate && \
+ mv migrate /usr/local/bin/migrate
+
+# Install pnpm globally
+RUN npm install -g [email protected]
+
+# Install Claude Code CLI
+RUN npm install -g @anthropic-ai/claude-code
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
new file mode 100644
index 0000000000..2de8f6e868
--- /dev/null
+++ b/.devcontainer/devcontainer.json
@@ -0,0 +1,8 @@
+{
+ "name": "langfuse-development",
+ "build": {
+ "dockerfile": "Dockerfile"
+ },
+ "forwardPorts": [3000, 5432, 6379, 8123, 9000],
+ "postCreateCommand": "cp .env.dev.example .env && pnpm i"
+}
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index edf6d1c296..ab1f8426e0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -57,8 +57,6 @@ yarn-error.log*
# vscode
-.devcontainer
-
node_modules
**/node_modules
**/dist