blob: 7f738e16256c03fcd6f55172b442501c2ec40a74 [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
Steve Markgraf61899472023-01-09 23:06:52 +010011RUN apk add libgpiod-dev || true
12
Nico Huberc0b52db2022-12-15 12:42:32 +000013# fix weird permissions in armhf-v3.11
14RUN [ -d /usr/share/git-core/templates ] && \
15 chmod -R a+r /usr/share/git-core/templates
16
17ENV GIT_SSL_NO_VERIFY=1
18USER mani
19
20ARG ORIGIN=https://review.coreboot.org/flashrom-stable.git
21RUN \
22 cd && \
23 mkdir .ccache && chown mani:mani .ccache && \
24 git clone ${ORIGIN} flashrom
25
26ENV DEVSHELL /bin/sh
27COPY mani-wrapper.sh /home/mani/
28ENTRYPOINT ["/bin/sh", "/home/mani/mani-wrapper.sh"]