Skip to content

Commit

Permalink
Move galaxy role install to it's own directory
Browse files Browse the repository at this point in the history
  • Loading branch information
aabaris committed Sep 5, 2024
1 parent 592a0e1 commit 21c8bbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ COPY galaxy-requirements.yaml /srv/docker-ansible/galaxy-requirements.yaml
RUN python3 -m venv /srv/docker-ansible/env && \
/srv/docker-ansible/env/bin/pip install -r /srv/docker-ansible/requirements.txt

RUN /srv/docker-ansible/env/bin/ansible-galaxy install -p /srv/docker-ansible/galaxy-roles -r /srv/docker-ansible/galaxy-requirements.yaml

# Final Image

FROM python:3.10-slim-bullseye
Expand All @@ -33,8 +35,6 @@ COPY --from=builder /srv/docker-ansible /srv/docker-ansible

COPY lint.sh /srv/docker-ansible/env/bin/lint.sh

RUN /srv/docker-ansible/env/bin/ansible-galaxy install -r /srv/docker-ansible/galaxy-requirements.yaml

ENTRYPOINT []

CMD ["/srv/docker-ansible/env/bin/ansible-playbook"]

0 comments on commit 21c8bbd

Please sign in to comment.