Skip to content

Commit

Permalink
Fix SED and print out packages used
Browse files Browse the repository at this point in the history
  • Loading branch information
cscollett committed Aug 27, 2024
1 parent 9b857a0 commit 5c32d32
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ COPY . .
# Run tests
USER app
RUN poetry run pytest tests
RUN poetry show

FROM build AS test-update
# Install dev dependencies
Expand All @@ -58,6 +59,7 @@ COPY . .
# Run tests
USER app
RUN poetry run pytest tests
RUN poetry show

FROM build AS test-unlocked-install
# Uninstall poetry and install it again
Expand All @@ -78,7 +80,7 @@ RUN pip uninstall -y poetry
# Remove poetry.lock and install dependencies
RUN rm poetry.lock
## Substitute all numbers in pyproject.toml with *
RUN sed -i 's/\^*[0-9][0-9A-Za-z.\-]*/*/g' pyproject.toml
RUN sed -i 's/\^/>=/g' pyproject.toml
# Print toml file
RUN cat pyproject.toml
RUN pip install poetry
Expand All @@ -88,6 +90,7 @@ COPY . .
# Run tests
USER app
RUN poetry run pytest tests
RUN poetry show


FROM base AS production
Expand Down

0 comments on commit 5c32d32

Please sign in to comment.