From c36aa357960c3e61946c6f47385b1f9d18aa23ec Mon Sep 17 00:00:00 2001 From: "Daniel.Roberson" <72473159+dans-work-github@users.noreply.github.com> Date: Wed, 11 Nov 2020 08:19:35 -0700 Subject: [PATCH 1/2] Add go and tfmask packages. --- Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Dockerfile b/Dockerfile index cd8b9a0..f674223 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,14 @@ FROM zenika/terraform-azure-cli:latest AS build RUN apt-get update && apt-get install make git python3-pip -y RUN pip3 install gitpython python-terraform pyhcl +RUN wget https://golang.org/dl/go1.15.4.linux-amd64.tar.gz && \ + tar -C /usr/local -xzf go1.15.4.linux-amd64.tar.gz && \ + export PATH=$PATH:/usr/local/go/bin + +RUN git clone --depth=1 -b master https://github.com/cloudposse/tfmask.git && \ + cd tfmask && \ + make go/build + FROM build as final WORKDIR /workspace CMD [ "bash" ] From 9eae5e308243cfd449d93bf725dc564080787c72 Mon Sep 17 00:00:00 2001 From: Daniel Roberson Date: Wed, 11 Nov 2020 08:56:56 -0700 Subject: [PATCH 2/2] remove make command in favor of go build --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f674223..a27d355 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ RUN wget https://golang.org/dl/go1.15.4.linux-amd64.tar.gz && \ RUN git clone --depth=1 -b master https://github.com/cloudposse/tfmask.git && \ cd tfmask && \ - make go/build + go build FROM build as final WORKDIR /workspace