You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
690 B

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 <warrick@sothr.com>"
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"]