Add devcontainer

This commit is contained in:
Gabriel Augendre 2023-03-27 09:37:44 +02:00
parent 5a5fb33dda
commit 072c762ad0
2 changed files with 12 additions and 0 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
COPY requirements.in requirements.txt requirements-dev.in requirements-dev.txt constraints.txt tasks.py ./
RUN invoke sync-dependencies

View file

@ -0,0 +1,7 @@
{
"build": {
"dockerfile": "Dockerfile",
"context": ".."
},
"postStartCommand": "inv sync-dependencies && pre-commit install --install-hooks"
}