Dockerfile 982 B

123456789101112131415161718192021222324252627282930
  1. ARG GO_VERSION=1.15.3
  2. FROM golang:$GO_VERSION-buster as builder
  3. ENV KUBECTL_VERSION="v1.19.2"
  4. ENV HELM_VERSION="v3.3.4"
  5. RUN go get -u github.com/onsi/ginkgo/ginkgo
  6. RUN wget -q https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl -O /usr/local/bin/kubectl && \
  7. chmod +x /usr/local/bin/kubectl && \
  8. wget -q https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz -O - | tar -xzO linux-amd64/helm > /usr/local/bin/helm && \
  9. chmod +x /usr/local/bin/helm
  10. FROM alpine:3.12
  11. RUN apk add -U --no-cache \
  12. ca-certificates \
  13. bash \
  14. curl \
  15. tzdata \
  16. libc6-compat \
  17. openssl
  18. COPY --from=builder /go/bin/ginkgo /usr/local/bin/
  19. COPY --from=builder /usr/local/bin/kubectl /usr/local/bin/
  20. COPY --from=builder /usr/local/bin/helm /usr/local/bin/
  21. COPY entrypoint.sh /entrypoint.sh
  22. COPY e2e.test /e2e.test
  23. COPY k8s /k8s
  24. CMD [ "/entrypoint.sh" ]