-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
37 lines (23 loc) · 854 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:41@sha256:9cfb3a7ad0a36a1e943409def613ec495571a5683c45addb5d608c2c29bb8248
# --- Version Pinning --- #
ARG fedora="41"
ARG arch="x86_64"
ARG version_csdiff="3.5.2-1"
ARG version_shellcheck="0.10.0-3"
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"]