Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM python:3.13.6-slim-bookworm

RUN apt update

RUN pip3 install --upgrade pip

# Install dependencies
RUN pip3 install uv
ADD pyproject.toml /tmp/pyproject.toml
ADD uv.lock /tmp/uv.lock
RUN (cd /tmp && uv pip install -r pyproject.toml --system --group dev)

# Prevent creating a virtual environment every time you run a uv command:
ENV UV_PROJECT_ENVIRONMENT=/usr/local/

ADD .devcontainer/jupyter_notebook_config.py /root/.jupyter/jupyter_notebook_config.py

# Install oh my zsh
RUN apt install -y git zsh wget
RUN wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh || true
ENV SHELL /usr/bin/zsh
24 changes: 24 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"build": {
"dockerfile": "Dockerfile",
"context": ".."
},
"remoteEnv": {
"PYTHONPATH": "/app:${containerEnv:PYTHONPATH}"
},
"runArgs": ["--env-file",".env"],
"forwardPorts": [8888], // For Jupyter
"customizations": {
"vscode": {
"extensions": [
"charliermarsh.ruff",
"donjayamanne.githistory",
"ms-python.python",
"ms-toolsai.jupyter",
"github.copilot",
"tamasfe.even-better-toml"
]
}
}
}
.6
Loading
Loading