From bea4f3044cd49b82d1f1826f4c1b4bbaff7a2fe0 Mon Sep 17 00:00:00 2001 From: Artem Smirnov Date: Tue, 21 Aug 2018 21:48:36 +0300 Subject: [PATCH] image_builder: add test Dockerfile --- image_builder/Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 image_builder/Dockerfile diff --git a/image_builder/Dockerfile b/image_builder/Dockerfile new file mode 100644 index 00000000..43bef8a6 --- /dev/null +++ b/image_builder/Dockerfile @@ -0,0 +1,21 @@ +# for alpine use apk + +FROM debian + +ENV DEBIAN_FRONTEND 'noninteractive' +ENV LANG 'C.UTF-8' +ENV LC_ALL 'C.UTF-8' + +RUN apt-get update -qq > /dev/null +RUN apt-get install -y --no-install-recommends -qq jq unzip wget parted apt-utils git ca-certificates > /dev/null +RUN apt-get clean + +COPY ./image_config.sh /builder/image_config.sh +COPY ./autobuild.sh /builder/autobuild.sh +COPY ./autosizer.sh /builder/autosizer.sh +COPY ./qemu-arm-resin /builder/qemu-arm-resin + +VOLUME image/ /builder/image + +WORKDIR /builder +CMD ./autobuild.sh