From fdf529d2f5a9ab99fc9a8b65a2868c9f6e304c04 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sat, 25 Mar 2023 09:51:06 +0100 Subject: [PATCH] Copy files during build --- .devcontainer/Dockerfile | 1 + .devcontainer/devcontainer.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index a310063..134835b 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -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 diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 5457820..cffe18e 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,6 +1,7 @@ { "build": { - "dockerfile": "Dockerfile" + "dockerfile": "Dockerfile", + "context": ".." }, "postStartCommand": "inv sync-dependencies && pre-commit install --install-hooks" }