Compare commits

...

2 Commits

Author SHA1 Message Date
Gabriel Augendre 072c762ad0 Add devcontainer 2023-03-27 09:37:44 +02:00
Gabriel Augendre 5a5fb33dda remove old run script 2023-03-27 09:36:02 +02:00
3 changed files with 12 additions and 4 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"
}

View File

@ -1,4 +0,0 @@
#!/bin/bash
set -eux
python manage.py migrate --noinput
gunicorn checkout.wsgi -b 0.0.0.0:8000 --log-file -