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