FROM debian:latest RUN apt update RUN apt install -y sudo curl git wget # go RUN wget https://go.dev/dl/go1.23.4.linux-amd64.tar.gz RUN rm -rf /usr/local/go && tar -C /usr/local -xzf go1.23.4.linux-amd64.tar.gz # linting RUN wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.62.2 # trivy RUN curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/bin latest # ko RUN curl -sSfL https://github.com/ko-build/ko/releases/download/v0.17.1/ko_0.17.1_Linux_x86_64.tar.gz > ko.tgz RUN tar xvf ko.tgz RUN rm LICENSE README.md ko.tgz RUN mv ko /usr/bin ENV PATH=$PATH:/usr/local/bin:/usr/local/go/bin