blob: 58d89c845f24481620ed70fbdd0a27700c4d93d6 [file] [log] [blame]
Nico Huberc0b52db2022-12-15 12:42:32 +00001FROM manibase
2
3ARG PROTO=https
4RUN \
5 adduser -D mani mani && \
6 sed -i "s/https/${PROTO}/" /etc/apk/repositories && \
7 apk update && \
8 apk add ca-certificates build-base linux-headers git ccache \
9 pciutils-dev libusb-compat-dev libusb-dev
10
11# fix weird permissions in armhf-v3.11
12RUN [ -d /usr/share/git-core/templates ] && \
13 chmod -R a+r /usr/share/git-core/templates
14
15ENV GIT_SSL_NO_VERIFY=1
16USER mani
17
18ARG ORIGIN=https://review.coreboot.org/flashrom-stable.git
19RUN \
20 cd && \
21 mkdir .ccache && chown mani:mani .ccache && \
22 git clone ${ORIGIN} flashrom
23
24ENV DEVSHELL /bin/sh
25COPY mani-wrapper.sh /home/mani/
26ENTRYPOINT ["/bin/sh", "/home/mani/mani-wrapper.sh"]