-
Notifications
You must be signed in to change notification settings - Fork 29
/
Dockerfile
27 lines (19 loc) · 1.04 KB
/
Dockerfile
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
# syntax=docker/dockerfile:1.1-experimental@sha256:de85b2f3a3e8a2f7fe48e8e84a65f6fdd5cd5183afa6412fff9caa6871649c44
# SPDX-License-Identifier: Apache-2.0
# Copyright 2020 Authors of Cilium
ARG ALPINE_BASE_IMAGE=docker.io/library/alpine:3.20.3@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d
FROM ${ALPINE_BASE_IMAGE} as builder
LABEL maintainer="[email protected]"
ENV CHECKPATCH_VERSION v5.12
COPY . /checkpatch
RUN apk add --no-cache bash curl git jq moreutils patch perl
RUN \
curl -sSL --output /checkpatch/checkpatch.pl \
"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/plain/scripts/checkpatch.pl?h=${CHECKPATCH_VERSION}" && \
chmod a+x /checkpatch/checkpatch.pl && \
curl -sSL --output /checkpatch/spelling.txt \
"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/plain/scripts/spelling.txt?h=${CHECKPATCH_VERSION}"
RUN for i in /checkpatch/fixes/*.diff; do \
patch -p1 /checkpatch/checkpatch.pl < "$i"; \
done
ENTRYPOINT ["/checkpatch/checkpatch.sh"]