forked from akuity/kargo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.dev
21 lines (18 loc) · 1016 Bytes
/
Dockerfile.dev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM golang:1.21.1-bookworm
ARG TARGETARCH
ARG BUF_VERSION=v1.26.1
ARG CONTROLLER_GEN_VERSION=v0.13.0
ARG GOLANGCI_LINT_VERSION=1.54.2
ARG HELM_VERSION=v3.12.3
ARG NODE_VERSION=18.x
RUN go install github.com/bufbuild/buf/cmd/buf@${BUF_VERSION} \
&& go install sigs.k8s.io/controller-tools/cmd/controller-gen@${CONTROLLER_GEN_VERSION} \
&& cd /usr/local/bin \
&& curl -sSfL https://github.com/golangci/golangci-lint/releases/download/v${GOLANGCI_LINT_VERSION}/golangci-lint-${GOLANGCI_LINT_VERSION}-linux-${TARGETARCH}.tar.gz \
| tar xvz golangci-lint-${GOLANGCI_LINT_VERSION}-linux-${TARGETARCH}/golangci-lint --strip-components=1 \
&& curl -sSfL https://get.helm.sh/helm-$HELM_VERSION-linux-${TARGETARCH}.tar.gz \
| tar xvz linux-${TARGETARCH}/helm --strip-components=1 \
&& curl -sL https://deb.nodesource.com/setup_${NODE_VERSION} | bash \
&& apt install nodejs \
&& curl -fsSL https://get.pnpm.io/install.sh | bash \
&& mv /root/.local/share/pnpm/pnpm /usr/bin