diff --git a/Dockerfile b/Dockerfile index 037a996..0d0ef04 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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