Skip to content

Commit

Permalink
Merge pull request #323 from glennpratt/patch-1
Browse files Browse the repository at this point in the history
Add distlib for Ansible Collections from source
  • Loading branch information
fahedouch authored Apr 2, 2024
2 parents be67804 + 5823026 commit acaba1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cluster/images/provider-ansible/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM python:3.10-alpine3.17 AS build-base
RUN apk --no-cache add gcc musl-dev libffi-dev
RUN mkdir -p /wheels
RUN python -m pip wheel ansible ansible-runner --wheel-dir=/wheels
RUN python -m pip wheel ansible ansible-runner distlib --wheel-dir=/wheels

FROM python:3.10-alpine3.17
RUN apk --no-cache add ca-certificates bash openssh-client git dumb-init
COPY --from=build-base /wheels/* /wheels/
RUN python -m pip install --no-index --find-links=/wheels ansible ansible-runner && \
RUN python -m pip install --no-index --find-links=/wheels ansible ansible-runner distlib && \
rm -r /wheels

ARG TARGETOS
Expand All @@ -25,4 +25,4 @@ RUN chown ansible /ansibleDir /.ansible

EXPOSE 8080
USER ansible
ENTRYPOINT ["/usr/bin/dumb-init", "crossplane-ansible-provider"]
ENTRYPOINT ["/usr/bin/dumb-init", "crossplane-ansible-provider"]

0 comments on commit acaba1f

Please sign in to comment.