blob: 8f3502d582959692363bec9b5818d12adb1025d7 [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
17RUN mkdir -p -m 1777 /ccache
18
19ENV GIT_SSL_NO_VERIFY=1
20USER mani
21
Nico Huberc3b02dc2023-08-12 01:13:45 +020022ARG ORIGIN=https://review.sourcearcade.org/flashprog.git
Nico Huber59848a92023-03-04 00:41:18 +000023RUN \
24 cd && \
Nico Huberc3b02dc2023-08-12 01:13:45 +020025 git clone ${ORIGIN} flashprog
Nico Huber59848a92023-03-04 00:41:18 +000026
27ENV DEVSHELL /bin/bash
28COPY mani-wrapper.sh /home/mani/
29ENTRYPOINT ["/bin/sh", "/home/mani/mani-wrapper.sh"]