Skip to content

Commit

Permalink
Shift location of poetry update command
Browse files Browse the repository at this point in the history
  • Loading branch information
lampham789 committed Aug 26, 2024
1 parent dd08155 commit 934eb04
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,10 @@ FROM poetry AS build
COPY pyproject.toml poetry.lock ./
RUN poetry install --no-root --without dev && rm -rf ${POETRY_CACHE_DIR};

FROM poetry AS build-minor-update
# Install minor version updates in the absence of poetry.lock file
COPY pyproject.toml poetry.lock ./
RUN poetry install --no-root --without dev && rm -rf ${POETRY_CACHE_DIR};
RUN poetry update
# FROM poetry AS build-minor-update
# # Install minor version updates in the absence of poetry.lock file
# COPY pyproject.toml poetry.lock ./
# RUN poetry install --no-root --without dev && rm -rf ${POETRY_CACHE_DIR};

FROM build AS test
# Install dev dependencies
Expand All @@ -51,9 +50,10 @@ COPY . .
USER app
RUN poetry run pytest tests

FROM build-minor-update AS test-minor-update
FROM build AS test-minor-update
# Install dev dependencies
RUN poetry install --only dev --no-root && rm -rf ${POETRY_CACHE_DIR};
RUN poetry update
COPY . .
# Run tests
USER app
Expand Down

0 comments on commit 934eb04

Please sign in to comment.