Files
fwdeploy/Dockerfile
2021-12-22 22:55:30 +01:00

47 lines
1001 B
Docker

FROM debian:testing
MAINTAINER Piotr Król <piotr.krol@3mdeb.com>
RUN apt-get update && apt-get install -y \
acpica-tools \
cmake \
file \
gawk \
git \
libc6 \
libftdi-dev \
libpci-dev \
libusb-1.0.0-dev \
pip \
python3 \
qtbase5-dev \
zip \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN pip install \
uefi-firmware \
binwalk
RUN mkdir -p /home/fwdeploy && cd /home/fwdeploy
WORKDIR /home/fwdeploy
RUN git clone https://github.com/flashrom/flashrom.git
RUN git clone https://github.com/LongSoft/UEFITool.git -b new_engine
RUN git clone https://github.com/dasharo/coreboot.git -b dell_optiplex_9010/release && \
cd coreboot && \
git submodule update --init --recursive --checkout
RUN cd /home/fwdeploy/flashrom && \
make install
RUN cd /home/fwdeploy/UEFITool && \
./unixbuild.sh
RUN cd /home/fwdeploy/coreboot && \
make -C util/cbfstool
COPY scripts/extract_image.sh /usr/bin/extract_image
COPY blobs /home/fwdeploy/blobs
ENTRYPOINT ["/usr/bin/extract_image"]