forked from akuity/kargo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.dev
24 lines (21 loc) · 1.32 KB
/
Dockerfile.dev
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.21.6-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_MAJOR=20
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 \
&& apt-get install -y ca-certificates curl gnupg \
&& mkdir -p /etc/apt/keyrings \
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
&& apt-get update && apt-get install nodejs -y \
&& curl -fsSL https://get.pnpm.io/install.sh | bash \
&& mv /root/.local/share/pnpm/pnpm /usr/bin