blob: 8eeb4ead859e267cc678f96b97dbfbd72db07bf8 [file] [log] [blame]
Nico Huberc0b52db2022-12-15 12:42:32 +00001FROM manibase
2
3RUN \
4 useradd -p locked -m mani && \
5 apt-get -qq update && \
6 apt-get -qq upgrade && \
Nico Huberb115c982023-03-02 23:10:05 +00007 apt-get -qqy install gcc make git doxygen ccache pkg-config meson \
Nico Hubere59061a2023-03-02 23:08:09 +00008 libpci-dev libftdi1-dev libusb-1.0-0-dev && \
Steve Markgraf61899472023-01-09 23:06:52 +01009 { apt-get -qqy install libjaylink-dev libgpiod-dev || true; } && \
Nico Huberc0b52db2022-12-15 12:42:32 +000010 apt-get clean
11
Nico Huberfb433ba2023-03-04 19:09:47 +000012RUN mkdir -p -m 1777 /ccache
13
Nico Huberc0b52db2022-12-15 12:42:32 +000014ENV GIT_SSL_NO_VERIFY=1
15USER mani
16
17ARG ORIGIN=https://review.coreboot.org/flashrom-stable.git
18RUN \
19 cd && \
20 mkdir .ccache && chown mani:mani .ccache && \
21 git clone ${ORIGIN} flashrom
22
Nico Huberfb433ba2023-03-04 19:09:47 +000023ARG IDENT=mani
24ARG CCACHE_MAX=32M
25RUN \
26 ccache --set-config cache_dir=/ccache/${IDENT} && \
27 ccache --set-config max_size=${CCACHE_MAX}
28
Nico Huberc0b52db2022-12-15 12:42:32 +000029ENV DEVSHELL /bin/bash
30COPY mani-wrapper.sh /home/mani/
31ENTRYPOINT ["/bin/sh", "/home/mani/mani-wrapper.sh"]