blob: a775bfdd15d4d36ca2ad0db8f031b894e8dfca7c [file] [log] [blame]
Nico Huberc0b52db2022-12-15 12:42:32 +00001FROM manibase
2
Nico Huberfc07d9d2023-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 Huberfc07d9d2023-02-26 15:17:03 +00008 apk add build-base linux-headers git ccache \
Nico Huberc0b52db2022-12-15 12:42:32 +00009 pciutils-dev libusb-compat-dev libusb-dev
Nico Huberfc07d9d2023-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 Markgrafbc42fb02023-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
Nico Huberc0b52db2022-12-15 12:42:32 +000021USER mani
22
23ARG ORIGIN=https://review.coreboot.org/flashrom-stable.git
24RUN \
25 cd && \
26 mkdir .ccache && chown mani:mani .ccache && \
27 git clone ${ORIGIN} flashrom
28
29ENV DEVSHELL /bin/sh
30COPY mani-wrapper.sh /home/mani/
31ENTRYPOINT ["/bin/sh", "/home/mani/mani-wrapper.sh"]