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

5 years ago
  1. FROM golang:1.13-buster as build
  2. ARG YTT_VERSION=master
  3. RUN echo building ytt $YTT_VERSION \
  4. && git clone \
  5. --branch "${YTT_VERSION}" \
  6. --single-branch \
  7. --depth 1 \
  8. https://github.com/k14s/ytt \
  9. ./src/github.com/k14s/ytt
  10. WORKDIR /go/src/github.com/k14s/ytt
  11. RUN CGO_ENABLED=0 go build -o ytt ./cmd/ytt/...
  12. FROM debian:buster-slim
  13. LABEL maintainer="Drew Short <warrick@sothr.com>"
  14. COPY --from=build /go/src/github.com/k14s/ytt/ytt /usr/bin/ytt
  15. RUN apt-get -y update \
  16. && apt-get -y --no-install-recommends install \
  17. bash \
  18. bsdmainutils \
  19. util-linux \
  20. && rm -Rf /var/lib/apt/lists/*
  21. WORKDIR /project
  22. ENTRYPOINT ["/usr/bin/ytt"]
  23. CMD ["-h"]