diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..2a0f0de --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,5 @@ +FROM mcr.microsoft.com/devcontainers/python:3.11-bullseye +RUN apt-get update && apt-get upgrade -y +RUN pip install pip-tools invoke \ + && inv sync-dependencies \ + && pre-commit install --install-hooks diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index a362c93..5457820 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,11 +1,6 @@ { - "image": "mcr.microsoft.com/devcontainers/universal:2", - "features": { - "ghcr.io/devcontainers/features/python:1": { - "version": "3.11", - "installTools": true, - "optimize": false - } + "build": { + "dockerfile": "Dockerfile" }, - "postStartCommand": "pip install pip-tools invoke && inv sync-dependencies && pre-commit install --install-hooks" + "postStartCommand": "inv sync-dependencies && pre-commit install --install-hooks" }