diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 000000000..eb1c35750 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,10 @@ +# Dev container Dockerfile +FROM mcr.microsoft.com/devcontainers/universal:4-noble + +# Install essential utilities including coreutils +RUN apt-get update && apt-get install -y \ + coreutils \ + && rm -rf /var/lib/apt/lists/* + +# Install Poetry +RUN curl -sSL https://install.python-poetry.org | python3 - diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000..27ae225d6 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,10 @@ +{ + "name": "Langfuse Python SDK", + "build": { + "dockerfile": "Dockerfile" + }, + "containerEnv": { + "PATH": "/root/.local/bin:$PATH" + }, + "postCreateCommand": "poetry self add poetry-dotenv-plugin && poetry self add poetry-bumpversion && poetry install --all-extras && poetry run pre-commit install && cp .env.template .env" +} \ No newline at end of file