Closed kalioz closed 3 years ago
As an alternative to the build image pattern, the following will add the image without the double layer size.
RUN wget https://github.com/gruntwork-io/terragrunt/releases/download/${TERRAGRUNT_VERSION}/terragrunt_linux_amd64 -O /usr/local/bin/terragrunt && \
chmod +x /usr/local/bin/terragrunt
I like what you are doing with distinguishing between the Terraform and Terragrunt versions.
closed, you can reopen if need.
Using a
ADD xyz
followed by aRUN chmod +x xyz
doubles the space the binary takes in the final (non-squashed) image. Using a builder step enables to do such changes and to only keep the final modified binary in the image.extract from
dive
: