From 64d142149bbcb9a85dae9a6a58bab93319161aba Mon Sep 17 00:00:00 2001 From: John Engelman Date: Tue, 10 Nov 2015 08:16:34 -0600 Subject: [PATCH] Need to update apk before installing glibc. --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2f35a7f..f313ace 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,11 +8,12 @@ RUN apk-install ca-certificates ENV TERRAFORM_VERSION 0.6.6 -RUN wget -q "https://circle-artifacts.com/gh/andyshinn/alpine-pkg-glibc/6/artifacts/0/home/ubuntu/alpine-pkg-glibc/packages/x86_64/glibc-2.21-r2.apk" && \ +RUN apk update && \ + wget -q "https://circle-artifacts.com/gh/andyshinn/alpine-pkg-glibc/6/artifacts/0/home/ubuntu/alpine-pkg-glibc/packages/x86_64/glibc-2.21-r2.apk" && \ apk add --allow-untrusted glibc-2.21-r2.apk && \ - wget -q -O /terraform.zip https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \ - unzip /terraform.zip -d /bin && \ - rm -rf /var/cache/apk/* glibc-2.21-r2.apk /terraform.zip + wget -q -O terraform.zip "https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip" && \ + unzip terraform.zip -d /bin && \ + rm -rf /var/cache/apk/* glibc-2.21-r2.apk terraform.zip ADD drone-terraform /bin/ ENTRYPOINT ["/bin/drone-terraform"]