Skip to content

Commit d93c0ac

Browse files
authored
🔨 Pre-install dependencies in Docker so that testing in Docker is faster (#954)
1 parent a337850 commit d93c0ac

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

‎scripts/docker/Dockerfile‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,9 @@ RUN apt-get update && apt-get install -y \
2020
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
2121

2222
ENV UV_SYSTEM_PYTHON=1
23+
24+
COPY . /code
25+
26+
WORKDIR /code
27+
28+
RUN uv pip install -r requirements.txt
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
services:
22
typer:
3-
build: .
3+
build:
4+
context: ../../
5+
dockerfile: scripts/docker/Dockerfile
46
volumes:
57
- ../../:/code
6-
working_dir: /code
78
command: sleep infinity

0 commit comments

Comments
 (0)