Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
go build

FROM build as final
WORKDIR /workspace
CMD [ "bash" ]