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 | |
| 11 | # fix weird permissions in armhf-v3.11 |
| 12 | RUN [ -d /usr/share/git-core/templates ] && \ |
| 13 | chmod -R a+r /usr/share/git-core/templates |
| 14 | |
| 15 | ENV GIT_SSL_NO_VERIFY=1 |
| 16 | USER mani |
| 17 | |
| 18 | ARG ORIGIN=https://review.coreboot.org/flashrom-stable.git |
| 19 | RUN \ |
| 20 | cd && \ |
| 21 | mkdir .ccache && chown mani:mani .ccache && \ |
| 22 | git clone ${ORIGIN} flashrom |
| 23 | |
| 24 | ENV DEVSHELL /bin/sh |
| 25 | COPY mani-wrapper.sh /home/mani/ |
| 26 | ENTRYPOINT ["/bin/sh", "/home/mani/mani-wrapper.sh"] |