Nico Huber | 59848a9 | 2023-03-04 00:41:18 +0000 | [diff] [blame] | 1 | FROM manibase |
| 2 | |
| 3 | RUN \ |
| 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 | |
Nico Huber | 6560bba | 2024-04-20 17:23:21 +0200 | [diff] [blame^] | 17 | RUN dnf install -y diffutils && dnf clean -y all |
| 18 | |
Nico Huber | 59848a9 | 2023-03-04 00:41:18 +0000 | [diff] [blame] | 19 | RUN mkdir -p -m 1777 /ccache |
| 20 | |
| 21 | ENV GIT_SSL_NO_VERIFY=1 |
| 22 | USER mani |
| 23 | |
Nico Huber | c3b02dc | 2023-08-12 01:13:45 +0200 | [diff] [blame] | 24 | ARG ORIGIN=https://review.sourcearcade.org/flashprog.git |
Nico Huber | 59848a9 | 2023-03-04 00:41:18 +0000 | [diff] [blame] | 25 | RUN \ |
| 26 | cd && \ |
Nico Huber | c3b02dc | 2023-08-12 01:13:45 +0200 | [diff] [blame] | 27 | git clone ${ORIGIN} flashprog |
Nico Huber | 59848a9 | 2023-03-04 00:41:18 +0000 | [diff] [blame] | 28 | |
| 29 | ENV DEVSHELL /bin/bash |
| 30 | COPY mani-wrapper.sh /home/mani/ |
| 31 | ENTRYPOINT ["/bin/sh", "/home/mani/mani-wrapper.sh"] |