mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-11-22 14:38:03 +01:00
Use a custom dockerfile
This commit is contained in:
parent
f4570ee55d
commit
df3a480335
2 changed files with 8 additions and 8 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 \
|
||||
&& inv sync-dependencies \
|
||||
&& pre-commit install --install-hooks
|
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue