FROM golang:1.13-buster as build ARG YTT_VERSION=master RUN echo building ytt $YTT_VERSION \ && git clone \ --branch "${YTT_VERSION}" \ --single-branch \ --depth 1 \ https://github.com/k14s/ytt \ ./src/github.com/k14s/ytt WORKDIR /go/src/github.com/k14s/ytt RUN CGO_ENABLED=0 go build -o ytt ./cmd/ytt/... FROM debian:buster-slim LABEL maintainer="Drew Short " COPY --from=build /go/src/github.com/k14s/ytt/ytt /usr/bin/ytt RUN apt-get -y update \ && apt-get -y --no-install-recommends install \ bash \ bsdmainutils \ util-linux \ && rm -Rf /var/lib/apt/lists/* WORKDIR /project ENTRYPOINT ["/usr/bin/ytt"] CMD ["-h"]