blob: e259955c90ab2f0ec59c63e23595776a35055d4a [file] [log] [blame]
Nico Huber59848a92023-03-04 00:41:18 +00001FROM manibase
2
3RUN \
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 Huber6560bba2024-04-20 17:23:21 +020017RUN dnf install -y diffutils && dnf clean -y all
18
Nico Huber59848a92023-03-04 00:41:18 +000019RUN mkdir -p -m 1777 /ccache
20
21ENV GIT_SSL_NO_VERIFY=1
22USER mani
23
Nico Huberc3b02dc2023-08-12 01:13:45 +020024ARG ORIGIN=https://review.sourcearcade.org/flashprog.git
Nico Huber59848a92023-03-04 00:41:18 +000025RUN \
26 cd && \
Nico Huberc3b02dc2023-08-12 01:13:45 +020027 git clone ${ORIGIN} flashprog
Nico Huber59848a92023-03-04 00:41:18 +000028
29ENV DEVSHELL /bin/bash
30COPY mani-wrapper.sh /home/mani/
31ENTRYPOINT ["/bin/sh", "/home/mani/mani-wrapper.sh"]