1 # syntax=docker/dockerfile-upstream:master-labs
2 # Stage 1: bsdiff build image
4 ARG FROM_IMAGE_NAMESPACE=library
5 # Alternatively "docker-remote.bart.sec.samsung.net".
7 FROM ${FROM_IMAGE_NAMESPACE}/ubuntu:20.04 as build
11 && DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \
22 # Stage 2: upgrade-tools image
23 FROM ${FROM_IMAGE_NAMESPACE}/ubuntu:20.04
26 && DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \
42 && rm -rf /var/lib/apt/lists/*
43 COPY --from=build --link /usr/local/bin/ss_bsdiff /usr/local/bin/
46 COPY --link --parents mk_delta/ scripts/ recovery/ /tota-upg/
53 COPY --link mass-delta-builder/pre_run.sh mass-delta-builder/mass-delta-builder.py /app/
56 ARG CFG_GIT_CLONE_PATH="https://git.tizen.org/cgit/platform/core/system/plugin/upgrade-tools-generic" \
59 RUN --mount=type=tmpfs,target=/tota-upg/mk_delta/temp \
60 git clone --branch "${CFG_GIT_BRANCH}" "${CFG_GIT_CLONE_PATH}" /tota-upg/mk_delta/temp \
61 && bash /tota-upg/scripts/directory-setup.sh /tota-upg/mk_delta/temp/ \
62 && cp -rf /tota-upg/mk_delta/temp/* /tota-upg/mk_delta/
66 VOLUME /images /result /app/cfg