diff --git a/{{cookiecutter.stack_name}}/.devcontainer/Dockerfile b/{{cookiecutter.stack_name}}/.devcontainer/Dockerfile new file mode 100644 index 0000000..6dd457c --- /dev/null +++ b/{{cookiecutter.stack_name}}/.devcontainer/Dockerfile @@ -0,0 +1,5 @@ +FROM mcr.microsoft.com/devcontainers/python:3.13 + +COPY requirements-dev.txt /tmp/requirements-test.txt + +RUN pip install --no-cache-dir -r /tmp/requirements-test.txt diff --git a/{{cookiecutter.stack_name}}/.devcontainer/devcontainer.json b/{{cookiecutter.stack_name}}/.devcontainer/devcontainer.json new file mode 100644 index 0000000..2919f29 --- /dev/null +++ b/{{cookiecutter.stack_name}}/.devcontainer/devcontainer.json @@ -0,0 +1,27 @@ +{ + "name": "Jupyter Cookiecutter Docker Stacks", + "build": { + "context": "..", + "dockerfile": "Dockerfile" + }, + + "features": { + "ghcr.io/devcontainers/features/docker-in-docker:2": { + "moby": false + } + }, + + "customizations": { + "vscode": { + "extensions": [ + "github.copilot-chat", + "github.copilot", + "github.vscode-github-actions", + "github.vscode-pull-request-github", + "ms-azuretools.vscode-containers", + "ms-azuretools.vscode-docker", + "ms-python.autopep8" + ] + } + } +}