Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 1 | FROM manibase |
| 2 | |
| 3 | RUN \ |
| 4 | useradd -p locked -m mani && \ |
| 5 | yum install -q -y ca-certificates git gcc systemd-devel \ |
| 6 | pciutils-devel libusb-devel libusbx-devel && \ |
| 7 | yum clean -q -y all |
| 8 | |
Nico Huber | fb433ba | 2023-03-04 19:09:47 +0000 | [diff] [blame] | 9 | RUN mkdir -p -m 1777 /ccache |
| 10 | |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 11 | ENV GIT_SSL_NO_VERIFY=1 |
| 12 | USER mani |
| 13 | |
Nico Huber | c3b02dc | 2023-08-12 01:13:45 +0200 | [diff] [blame^] | 14 | ARG ORIGIN=https://review.sourcearcade.org/flashprog.git |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 15 | RUN \ |
| 16 | cd && \ |
| 17 | mkdir .ccache && chown mani:mani .ccache && \ |
Nico Huber | c3b02dc | 2023-08-12 01:13:45 +0200 | [diff] [blame^] | 18 | git clone ${ORIGIN} flashprog |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 19 | |
| 20 | ENV DEVSHELL /bin/bash |
| 21 | COPY mani-wrapper.sh /home/mani/ |
| 22 | ENTRYPOINT ["/bin/sh", "/home/mani/mani-wrapper.sh"] |