blob: 72c747275cee8ba338ffd24b35130d351fd82185 [file] [log] [blame]
Nico Huberc0b52db2022-12-15 12:42:32 +00001FROM manibase
2
3RUN \
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 Huberfb433ba2023-03-04 19:09:47 +00009RUN mkdir -p -m 1777 /ccache
10
Nico Huberc0b52db2022-12-15 12:42:32 +000011ENV GIT_SSL_NO_VERIFY=1
12USER mani
13
Nico Huberc3b02dc2023-08-12 01:13:45 +020014ARG ORIGIN=https://review.sourcearcade.org/flashprog.git
Nico Huberc0b52db2022-12-15 12:42:32 +000015RUN \
16 cd && \
17 mkdir .ccache && chown mani:mani .ccache && \
Nico Huberc3b02dc2023-08-12 01:13:45 +020018 git clone ${ORIGIN} flashprog
Nico Huberc0b52db2022-12-15 12:42:32 +000019
20ENV DEVSHELL /bin/bash
21COPY mani-wrapper.sh /home/mani/
22ENTRYPOINT ["/bin/sh", "/home/mani/mani-wrapper.sh"]