FROM ubuntu:20.04 as build ENV DEBIAN_FRONTEND="noninteractive" ENV TZ=UTC ADD bsdiff /bsdiff RUN apt-get update && apt-get -y --no-install-recommends install libbrotli-dev libdivsufsort-dev git cmake build-essential pkg-config RUN git clone git://git.tizen.org/platform/upstream/lzma-sdk -b tizen /lzma-sdk RUN cd /lzma-sdk && cmake -DLIB_INSTALL_DIR=/usr/local/lib . && make install RUN cd bsdiff && cmake . && make install FROM ubuntu:20.04 ADD mk_delta /tota-upg/mk_delta/ ADD scripts /tota-upg/scripts/ ADD recovery /tota-upg/recovery/ COPY --from=build /usr/local/bin/ss_bsdiff /usr/local/bin/ss_bspatch /usr/local/bin/ COPY --from=build /usr/local/lib/liblzma-tool.so.* /usr/local/lib RUN apt-get update && \ apt-get install -y --no-install-recommends libbrotli1 libdivsufsort3 python-is-python2 python2 python-apt p7zip-full attr tar file sudo && rm -rf /var/lib/apt/lists/*