Separation of OS Upgrade into two stages
[platform/core/system/upgrade.git] / Dockerfile
1 # Dockerfile for running upgrade-apply-deltafs in CI
2 #
3 FROM ubuntu:20.04 AS BUILD
4
5 ENV DEBIAN_FRONTEND=noninteractive
6 # Note: no need to clean apt lib/cache as this container is discarded
7 RUN apt-get update && apt-get -y --no-install-recommends install libbrotli-dev zlib1g-dev libtar-dev cmake build-essential pkg-config
8 ADD . /build
9 RUN cd /build && cmake -DDEFINE_HOST_BUILD=1 . && make install
10
11 FROM ubuntu:20.04
12 RUN mkdir /app
13 COPY --from=BUILD /usr/bin/upgrade-apply-deltafs /usr/bin/upgrade-apply /app/
14 WORKDIR /app