From b8f4a214c9fb10c44662c7e2deaab4394e1bd9ce Mon Sep 17 00:00:00 2001 From: richardrobertreitz Date: Mon, 16 Dec 2024 12:44:19 +0000 Subject: [PATCH] Add complete/Dockerfile_forgejo_action --- complete/Dockerfile_forgejo_action | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 complete/Dockerfile_forgejo_action diff --git a/complete/Dockerfile_forgejo_action b/complete/Dockerfile_forgejo_action new file mode 100644 index 0000000..71df27f --- /dev/null +++ b/complete/Dockerfile_forgejo_action @@ -0,0 +1,22 @@ +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