-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
37 lines (23 loc) · 850 Bytes
/
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
28
29
30
31
32
33
34
35
36
37
# SPDX-License-Identifier: GPL-3.0-or-later
FROM fedora@sha256:d0207dbb078ee261852590b9a8f1ab1f8320547be79a2f39af9f3d23db33735e
# --- Version Pinning --- #
ARG fedora="40"
ARG arch="x86_64"
ARG version_csdiff="3.5.0-1"
ARG version_shellcheck="0.9.0-6"
ARG rpm_csdiff="csdiff-${version_csdiff}.fc${fedora}.${arch}.rpm"
ARG rpm_shellcheck="ShellCheck-${version_shellcheck}.fc${fedora}.${arch}.rpm"
# --- Install dependencies --- #
RUN dnf -y upgrade
RUN dnf -y install git koji jq sarif-fmt \
&& dnf clean all
# Download rpms from koji
RUN koji download-build --arch ${arch} ${rpm_shellcheck} \
&& koji download-build --arch ${arch} ${rpm_csdiff}
RUN dnf -y install "./${rpm_shellcheck}" "./${rpm_csdiff}" \
&& dnf clean all
# --- Setup --- #
RUN mkdir -p /action
WORKDIR /action
COPY src/* ./
ENTRYPOINT ["/action/index.sh"]