Copy files during build

This commit is contained in:
Gabriel Augendre 2023-03-25 09:51:06 +01:00
parent 4a66efd3a6
commit fdf529d2f5
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,6 @@
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 .pre-commit-config.yaml ./
RUN invoke sync-dependencies
RUN pre-commit install --install-hooks

View file

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