-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 936 Bytes
/
Dockerfile
File metadata and controls
28 lines (21 loc) · 936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM golang:1.26.1-alpine3.23@sha256:2389ebfa5b7f43eeafbd6be0c3700cc46690ef842ad962f6c5bd6be49ed82039 AS go-builder
ENV REVIEWDOG_VERSION=v0.21.0
RUN apk add --no-cache git \
&& git clone --depth 1 --branch ${REVIEWDOG_VERSION} https://github.com/reviewdog/reviewdog.git /reviewdog \
&& cd /reviewdog \
&& go mod edit -require=golang.org/x/crypto@v0.45.0 \
&& go mod tidy \
&& CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o reviewdog ./cmd/reviewdog
FROM node:25.9.0-alpine3.23@sha256:ad82ecad30371c43f4057aaa4800a8ed88f9446553a2d21323710c7b937177fc
ENV MARKDOWNLINT_CLI_VERSION=v0.48.0
RUN npm install -g "markdownlint-cli@$MARKDOWNLINT_CLI_VERSION"
RUN apk add --no-cache \
ca-certificates \
git \
jq \
wget \
curl
COPY --from=go-builder /reviewdog/reviewdog /usr/local/bin/reviewdog
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD []