mirror of
https://github.com/Crocmagnon/checkout.git
synced 2024-11-24 17:18:03 +01:00
Add devcontainer
This commit is contained in:
parent
5a5fb33dda
commit
072c762ad0
2 changed files with 12 additions and 0 deletions
5
.devcontainer/Dockerfile
Normal file
5
.devcontainer/Dockerfile
Normal 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
|
7
.devcontainer/devcontainer.json
Normal file
7
.devcontainer/devcontainer.json
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"build": {
|
||||||
|
"dockerfile": "Dockerfile",
|
||||||
|
"context": ".."
|
||||||
|
},
|
||||||
|
"postStartCommand": "inv sync-dependencies && pre-commit install --install-hooks"
|
||||||
|
}
|
Loading…
Reference in a new issue