blob: 179c45f6af6c83595ce386417880353e850e9270 [file] [log] [blame]
Nico Huberc0b52db2022-12-15 12:42:32 +00001FROM manibase
2
3RUN \
4 useradd -p locked -m mani && \
5 dnf install -q -y ca-certificates git gcc ccache make systemd-devel \
6 pciutils-devel libusb-devel libusbx-devel libftdi-devel \
7 libjaylink-devel && \
Steve Markgraf61899472023-01-09 23:06:52 +01008 { dnf install -q -y libgpiod-devel || true; } && \
Nico Huberc0b52db2022-12-15 12:42:32 +00009 dnf clean -q -y all
10
11ENV GIT_SSL_NO_VERIFY=1
12USER mani
13
14ARG ORIGIN=https://review.coreboot.org/flashrom-stable.git
15RUN \
16 cd && \
17 mkdir .ccache && chown mani:mani .ccache && \
18 git clone ${ORIGIN} flashrom
19
20ENV DEVSHELL /bin/bash
21COPY mani-wrapper.sh /home/mani/
22ENTRYPOINT ["/bin/sh", "/home/mani/mani-wrapper.sh"]