blob: 5904f45ff8cb9200516bbfc1b8c4a00b4183cba2 [file] [log] [blame]
Nico Huber59848a92023-03-04 00:41:18 +00001FROM manibase
2
3RUN \
4 useradd -p locked -m mani && \
5 if dnf repolist powertools | grep -q powertools; then \
6 powertools=powertools; \
7 else \
8 powertools=crb; \
9 fi && \
10 dnf install -y --enablerepo=${powertools} \
11 ca-certificates shadow-utils \
12 git gcc make systemd-devel meson \
13 pciutils-devel libusbx-devel && \
14 { dnf install -y libgpiod-devel || true; } && \
15 dnf clean -y all
16
17RUN mkdir -p -m 1777 /ccache
18
19ENV GIT_SSL_NO_VERIFY=1
20USER mani
21
22ARG ORIGIN=https://review.coreboot.org/flashrom-stable.git
23RUN \
24 cd && \
25 git clone ${ORIGIN} flashrom
26
27ENV DEVSHELL /bin/bash
28COPY mani-wrapper.sh /home/mani/
29ENTRYPOINT ["/bin/sh", "/home/mani/mani-wrapper.sh"]