diff --git a/docker/Dockerfile.linux.amd64 b/docker/Dockerfile.linux.amd64 index 43d920b..3fcfedc 100644 --- a/docker/Dockerfile.linux.amd64 +++ b/docker/Dockerfile.linux.amd64 @@ -12,21 +12,14 @@ LABEL maintainer="Drone.IO Community " \ org.label-schema.vendor="Drone.IO Community" \ org.label-schema.schema-version="1.0" -RUN apk add --no-cache lxc lxc-dev automake libc-dev gcc bash git autoconf libtool jq curl rsync openssh-client sshpass py-pip py-requests py-paramiko python2-dev libffi-dev libressl-dev libressl build-base && \ - pip install -U pip && \ - pip install ansible==2.10.0 boto3==1.13.10 - +RUN apk add --no-cache automake libc-dev gcc bash git autoconf libtool jq curl rsync openssh-client sshpass py3-pip py3-requests py3-paramiko python3-dev libffi-dev libressl-dev libressl build-base && \ + pip3 install -U pip && \ + pip3 install ansible==2.10.0 boto3==1.13.10 + COPY --from=build /app/release/linux/amd64/drone-ansible /bin/ COPY --from=build /app/requirements.txt /requirements.txt -RUN cp /usr/bin/python2 /usr/bin/python3 - -RUN unlink /usr/bin/python - -RUN ln -s /usr/bin/python2 /usr/bin/python - - RUN pip install -r /requirements.txt ENTRYPOINT ["/bin/drone-ansible"]