Add complete/Dockerfile_forgejo_action
This commit is contained in:
parent
531b0978bb
commit
b8f4a214c9
1 changed files with 22 additions and 0 deletions
22
complete/Dockerfile_forgejo_action
Normal file
22
complete/Dockerfile_forgejo_action
Normal file
|
@ -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
|
Loading…
Reference in a new issue