From d93c0ac714386b39df87597e30149bf2c2a7e824 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Sat, 24 Aug 2024 16:14:02 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Pre-install=20dependencies=20in?= =?UTF-8?q?=20Docker=20so=20that=20testing=20in=20Docker=20is=20faster=20(?= =?UTF-8?q?#954)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/docker/Dockerfile | 6 ++++++ scripts/docker/compose.yaml | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/docker/Dockerfile b/scripts/docker/Dockerfile index 738867a954..b158e2db04 100644 --- a/scripts/docker/Dockerfile +++ b/scripts/docker/Dockerfile @@ -20,3 +20,9 @@ RUN apt-get update && apt-get install -y \ COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv ENV UV_SYSTEM_PYTHON=1 + +COPY . /code + +WORKDIR /code + +RUN uv pip install -r requirements.txt diff --git a/scripts/docker/compose.yaml b/scripts/docker/compose.yaml index 0f9d960d34..efe17f9efd 100644 --- a/scripts/docker/compose.yaml +++ b/scripts/docker/compose.yaml @@ -1,7 +1,8 @@ services: typer: - build: . + build: + context: ../../ + dockerfile: scripts/docker/Dockerfile volumes: - ../../:/code - working_dir: /code command: sleep infinity