FROM docker.io/debian:buster-slim ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update \ && apt-get -y upgrade \ && apt-get -y install --no-install-recommends \ ca-certificates \ curl \ unzip \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* ARG TERRAFORM_VERSION ENV TERRAFORM_VERSION="${TERRAFORM_VERSION:-0.13.5}" RUN useradd --create-home --shell /bin/bash terraform USER terraform COPY --chown=terraform:terraform . /home/terraform RUN chmod +x /home/terraform/bin/* \ && echo "export PATH=/home/terraform/bin:\${PATH}" >> "/home/terraform/.bashrc" \ && /home/terraform/bin/tfw -version \ && rm -f /home/terraform/.terraform/*.zip VOLUME /home/terraform/source WORKDIR /home/terraform/source ENTRYPOINT ["/home/terraform/bin/tfw"] CMD ["-help"]