-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 923 Bytes
/
Dockerfile
File metadata and controls
28 lines (20 loc) · 923 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.25.3-alpine3.22@sha256:aee43c3ccbf24fdffb7295693b6e33b21e01baec1b2a55acc351fde345e9ec34 AS go-builder
ENV REVIEWDOG_VERSION=v0.20.3
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.35.0 \
&& go mod tidy \
&& CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o reviewdog ./cmd/reviewdog
FROM node:24.10-alpine3.22@sha256:6ff78d6d45f2614fe0da54756b44a7c529a15ebcaf9832fab8df036b1d466e73
ENV MARKDOWNLINT_CLI_VERSION=v0.42.0
RUN npm install -g "markdownlint-cli@$MARKDOWNLINT_CLI_VERSION"
RUN apk add --no-cache \
ca-certificates \
git \
wget \
curl
COPY --from=go-builder /reviewdog/reviewdog /usr/local/bin/reviewdog
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD []