From df3a48033564bff9ffe233f2352bf85fdfe3c699 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sat, 25 Mar 2023 09:43:21 +0100 Subject: [PATCH] Use a custom dockerfile --- .devcontainer/Dockerfile | 5 +++++ .devcontainer/devcontainer.json | 11 +++-------- 2 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 .devcontainer/Dockerfile 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" }