pipeline-container/complete/Dockerfile_forgejo_action
richardrobertreitz b8f4a214c9
Some checks failed
/ build-kaniko (push) Failing after 35s
/ build-go (push) Failing after 20s
/ build-complete (push) Failing after 10m42s
/ build-trivy (push) Failing after 22m10s
/ build-golang-ci-lint (push) Failing after 23m4s
Add complete/Dockerfile_forgejo_action
2024-12-16 12:44:19 +00:00

22 lines
698 B
Text

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