Skip to content

Commit 08ea5a6

Browse files
committed
gets smarter about poetry+docker
1 parent 830259f commit 08ea5a6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,14 @@ FROM python:3.11.9-alpine3.19
1414
RUN apk add --no-cache poetry nodejs npm
1515

1616
WORKDIR /src
17-
ADD . .
1817

19-
RUN poetry install
18+
# install stuff that doesn't change much
19+
ADD poetry.lock pyproject.toml .
20+
RUN poetry install --no-root
21+
22+
# pull in the rest of the code
23+
ADD . .
24+
RUN poetry install --only-root
2025
RUN poetry run black .
2126
RUN poetry run isort .
2227
RUN poetry run pyright ocsf_validator

0 commit comments

Comments
 (0)