summaryrefslogtreecommitdiffstats
path: root/util/manibuilder/Dockerfile.alpine
blob: 91b880659f692b191376f457791b5de13547db02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM manibase

RUN \
	adduser -D mani mani && \
	apk update && \
	apk add ca-certificates build-base linux-headers git ccache \
		pciutils-dev libusb-compat-dev libusb-dev

# fix weird permissions in armhf-v3.11
RUN [ -d /usr/share/git-core/templates ] && \
	chmod -R a+r /usr/share/git-core/templates

ENV GIT_SSL_NO_VERIFY=1
USER mani
RUN \
	cd && \
	mkdir .ccache && chown mani:mani .ccache && \
	git clone https://review.coreboot.org/flashrom.git

ENV DEVSHELL /bin/sh
COPY mani-wrapper.sh /home/mani/
ENTRYPOINT ["/bin/sh", "/home/mani/mani-wrapper.sh"]