Skip to content

Commit 9db485d

Browse files
Dominik FalknerDominik Falkner
authored andcommitted
Ensure dockerfiles use pyenv rehash
1 parent 2319522 commit 9db485d

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎{{ cookiecutter.__package_name_kebab_case }}/Dockerfile-cuda‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ ENV PYTHONPATH "${PYTHONPATH}:/repo"
5858

5959
# Install dependencies (package itself is not installed)
6060
COPY pyproject.toml poetry.lock .
61+
6162
RUN poetry install --all-extras --no-root
63+
RUN pyenv rehash
6264

6365
# Copy the rest of the repository
6466
ADD . .

‎{{ cookiecutter.__package_name_kebab_case }}/Dockerfile-test‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ WORKDIR /repo
5353

5454
# Install dependencies (package itself is not installed)
5555
COPY pyproject.toml poetry.lock .
56+
5657
RUN poetry install --all-extras --no-root
58+
RUN pyenv rehash
5759

5860
# Copy the rest of the repository
5961
ADD . .

0 commit comments

Comments
 (0)