blob: 7b4827796ab2b98d26a7b39495c15eaf6394fe0d [file] [log] [blame]
Nico Huberc0b52db2022-12-15 12:42:32 +00001FROM manibase
2
Nico Huber9b2f0522023-02-26 15:17:03 +00003COPY isrgrootx1.pem /etc/ssl/cert.pem
4
Nico Huberc0b52db2022-12-15 12:42:32 +00005RUN \
6 adduser -D mani mani && \
Nico Huberc0b52db2022-12-15 12:42:32 +00007 apk update && \
Nico Huber9b2f0522023-02-26 15:17:03 +00008 apk add build-base linux-headers git ccache \
Nico Huber582267f2023-02-26 15:22:37 +00009 pciutils-dev libusb-dev libftdi1-dev && \
Nico Huber9b2f0522023-02-26 15:17:03 +000010 if [ ! -h /etc/ssl/cert.pem ]; then \
11 rm -f /etc/ssl/certs/*; \
12 ln -sf /etc/ssl/cert.pem /etc/ssl/certs/ca-certificates.crt; \
13 fi
Nico Huberc0b52db2022-12-15 12:42:32 +000014
Steve Markgraf61899472023-01-09 23:06:52 +010015RUN apk add libgpiod-dev || true
16
Nico Huberc0b52db2022-12-15 12:42:32 +000017# fix weird permissions in armhf-v3.11
18RUN [ -d /usr/share/git-core/templates ] && \
19 chmod -R a+r /usr/share/git-core/templates
20
21ENV GIT_SSL_NO_VERIFY=1
22USER mani
23
24ARG ORIGIN=https://review.coreboot.org/flashrom-stable.git
25RUN \
26 cd && \
27 mkdir .ccache && chown mani:mani .ccache && \
28 git clone ${ORIGIN} flashrom
29
30ENV DEVSHELL /bin/sh
31COPY mani-wrapper.sh /home/mani/
32ENTRYPOINT ["/bin/sh", "/home/mani/mani-wrapper.sh"]