Use a custom dockerfile

This commit is contained in:
Gabriel Augendre 2023-03-25 09:43:21 +01:00
parent f4570ee55d
commit df3a480335
2 changed files with 8 additions and 8 deletions

5
.devcontainer/Dockerfile Normal file
View file

@ -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

View file

@ -1,11 +1,6 @@
{ {
"image": "mcr.microsoft.com/devcontainers/universal:2", "build": {
"features": { "dockerfile": "Dockerfile"
"ghcr.io/devcontainers/features/python:1": {
"version": "3.11",
"installTools": true,
"optimize": false
}
}, },
"postStartCommand": "pip install pip-tools invoke && inv sync-dependencies && pre-commit install --install-hooks" "postStartCommand": "inv sync-dependencies && pre-commit install --install-hooks"
} }