diff --git a/Dockerfile b/Dockerfile index c3b2384..0405c08 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,6 @@ COPY galaxy-requirements.yaml /srv/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 -r /srv/ansible/galaxy-requirements.yaml # Final Image @@ -34,6 +33,8 @@ 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/ansible/galaxy-requirements.yaml + ENTRYPOINT [] CMD ["/srv/docker-ansible/env/bin/ansible-playbook"]