Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Commit

Permalink
Ensure container is fully updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Sep 4, 2022
1 parent 0e36ba5 commit d4fedea
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ USER root
COPY --from=galaxy /usr/share/ansible /usr/share/ansible

COPY --from=builder /output/ /output/
RUN /output/install-from-bindep && rm -rf /output/wheels
RUN alternatives --set python /usr/bin/python3
RUN \
set -ex && \
/output/install-from-bindep && rm -rf /output/wheels && \
alternatives --set python /usr/bin/python3 && \
dnf -y upgrade && \
dnf autoremove
# add some helpful CLI commands to check we do not remove them inadvertently and output some helpful version information at build time.
RUN set -ex \
&& molecule --version \
Expand Down

0 comments on commit d4fedea

Please sign in to comment.