Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 1 | FROM manibase |
| 2 | |
| 3 | ARG PROTO=https |
| 4 | RUN \ |
| 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 Markgraf | 6189947 | 2023-01-09 23:06:52 +0100 | [diff] [blame] | 11 | RUN apk add libgpiod-dev || true |
| 12 | |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 13 | # fix weird permissions in armhf-v3.11 |
| 14 | RUN [ -d /usr/share/git-core/templates ] && \ |
| 15 | chmod -R a+r /usr/share/git-core/templates |
| 16 | |
| 17 | ENV GIT_SSL_NO_VERIFY=1 |
| 18 | USER mani |
| 19 | |
| 20 | ARG ORIGIN=https://review.coreboot.org/flashrom-stable.git |
| 21 | RUN \ |
| 22 | cd && \ |
| 23 | mkdir .ccache && chown mani:mani .ccache && \ |
| 24 | git clone ${ORIGIN} flashrom |
| 25 | |
| 26 | ENV DEVSHELL /bin/sh |
| 27 | COPY mani-wrapper.sh /home/mani/ |
| 28 | ENTRYPOINT ["/bin/sh", "/home/mani/mani-wrapper.sh"] |