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