-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (18 loc) · 1012 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM golang:1.15-alpine
ARG TRIVY_VERSION
ARG GOLANGCI_LINT_VERSION
RUN wget https://github.com/digitalocean/doctl/releases/download/v1.59.0/doctl-1.59.0-linux-amd64.tar.gz \
&& tar xf doctl-1.59.0-linux-amd64.tar.gz \
&& rm *tar.gz \
&& mv doctl /usr/local/bin
RUN wget https://github.com/cli/cli/releases/download/v1.9.2/gh_1.9.2_linux_386.tar.gz -O ghcli.tar.gz \
&& tar -C /usr --strip-components=1 -xf ghcli.tar.gz \
&& rm ghcli.tar.gz \
&& gh config set prompt enabled
RUN apk add --no-cache curl build-base openssh-client git jq
RUN curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin ${TRIVY_VERSION}
RUN wget https://get.helm.sh/helm-v3.5.4-linux-amd64.tar.gz \
&& tar -zxvf helm-v3.5.4-linux-amd64.tar.gz \
&& mv linux-amd64/helm /usr/local/bin/helm \
&& rm helm*.tar.gz
RUN wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s ${GOLANGCI_LINT_VERSION}