Skip to content

Commit

Permalink
🔨 Pre-install dependencies in Docker so that testing in Docker is fas…
Browse files Browse the repository at this point in the history
…ter (#954)
  • Loading branch information
tiangolo authored Aug 24, 2024
1 parent a337850 commit d93c0ac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions scripts/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 3 additions & 2 deletions scripts/docker/compose.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
services:
typer:
build: .
build:
context: ../../
dockerfile: scripts/docker/Dockerfile
volumes:
- ../../:/code
working_dir: /code
command: sleep infinity

0 comments on commit d93c0ac

Please sign in to comment.