You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Dockerfile
+7-11Lines changed: 7 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,14 @@
2
2
3
3
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
4
4
#
5
-
# Generated on 2024-05-08T13:34:33Z by kres 1e986af.
5
+
# Generated on 2024-05-27T14:20:35Z by kres b5844f8.
6
6
7
7
ARG TOOLCHAIN
8
8
9
9
# runs markdownlint
10
-
FROM docker.io/node:21.7.3-alpine3.19 AS lint-markdown
10
+
FROM docker.io/node:22.2.0-alpine3.19 AS lint-markdown
11
11
WORKDIR /src
12
-
RUN npm i -g markdownlint-cli@0.39.0
12
+
RUN npm i -g markdownlint-cli@0.40.0
13
13
RUN npm i sentences-per-line@0.2.1
14
14
COPY .markdownlint.json .
15
15
COPY ./README.md ./README.md
@@ -20,7 +20,7 @@ FROM scratch AS proto-specs
20
20
ADD testservice/api/test.proto /testservice/
21
21
22
22
# base toolchain image
23
-
FROM ${TOOLCHAIN} AS toolchain
23
+
FROM--platform=${BUILDPLATFORM} ${TOOLCHAIN} AS toolchain
24
24
RUN apk --update --no-cache add bash curl build-base protoc protobuf-dev
25
25
26
26
# build tools
@@ -42,6 +42,9 @@ RUN mv /go/bin/protoc-gen-go-grpc /bin
42
42
ARG GRPC_GATEWAY_VERSION
43
43
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@v${GRPC_GATEWAY_VERSION}
44
44
RUN mv /go/bin/protoc-gen-grpc-gateway /bin
45
+
ARG GOIMPORTS_VERSION
46
+
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg go install golang.org/x/tools/cmd/goimports@v${GOIMPORTS_VERSION}
47
+
RUN mv /go/bin/goimports /bin
45
48
ARG DEEPCOPY_VERSION
46
49
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg go install github.com/siderolabs/deep-copy@${DEEPCOPY_VERSION} \
47
50
&& mv /go/bin/deep-copy /bin/deep-copy
@@ -50,9 +53,6 @@ RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/g
50
53
&& mv /go/bin/golangci-lint /bin/golangci-lint
51
54
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg go install golang.org/x/vuln/cmd/govulncheck@latest \
52
55
&& mv /go/bin/govulncheck /bin/govulncheck
53
-
ARG GOIMPORTS_VERSION
54
-
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg go install golang.org/x/tools/cmd/goimports@${GOIMPORTS_VERSION} \
55
-
&& mv /go/bin/goimports /bin/goimports
56
56
ARG GOFUMPT_VERSION
57
57
RUN go install mvdan.cc/gofumpt@${GOFUMPT_VERSION} \
58
58
&& mv /go/bin/gofumpt /bin/gofumpt
@@ -81,10 +81,6 @@ RUN gofumpt -w /testservice
81
81
FROM base AS lint-gofumpt
82
82
RUN FILES="$(gofumpt -l .)" && test -z "${FILES}" || (echo -e "Source code is not formatted with 'gofumpt -w .':\n${FILES}"; exit 1)
83
83
84
-
# runs goimports
85
-
FROM base AS lint-goimports
86
-
RUN FILES="$(goimports -l -local github.com/siderolabs/grpc-proxy/ .)" && test -z "${FILES}" || (echo -e "Source code is not formatted with 'goimports -w -local github.com/siderolabs/grpc-proxy/ .':\n${FILES}"; exit 1)
0 commit comments