[Buildroot] [PATCH 5/5] support/docker: add an Alpine-3.7 based image

Martin Bark martin at barkynet.com
Sat Jul 14 11:19:38 UTC 2018


Yann,

On 13 July 2018 at 07:38, Yann E. MORIN <yann.morin.1998 at free.fr> wrote:
> No attempt was made at making this image reproducible.
>
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
> Cc: Ricardo Martincoski <ricardo.martincoski at gmail.com>
> Cc: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
> ---
>  support/docker/Dockerfile.alpine-3.7 | 42 ++++++++++++++++++++++++++++++++++++
>  1 file changed, 42 insertions(+)
>  create mode 100644 support/docker/Dockerfile.alpine-3.7
>
> diff --git a/support/docker/Dockerfile.alpine-3.7 b/support/docker/Dockerfile.alpine-3.7
> new file mode 100644
> index 0000000000..e05eb2bd4a
> --- /dev/null
> +++ b/support/docker/Dockerfile.alpine-3.7
> @@ -0,0 +1,42 @@
> +# vi: ft=dockerfile
> +# Note: this dockerfile is not reproducible, because the repository
> +# where we fetch packages from is not pinned to a specific point in
> +# time; i.e. we'll get whatever is current at the moment we build.
> +
> +FROM alpine:3.7
> +
> +LABEL maintainer="Buildroot mailing list <buildroot at buildroot.org>" \
> +      vendor="Buildroot" \
> +      description="Container based on Alpine 3.7, with everything needed to run Buildroot already installed"
> +

It's best practice to combine the update and install from a package
manger in one line.  So this should be changed to

RUN apk update && apk add \

Thanks

Martin

> +RUN apk update
> +
> +RUN apk add \
> +    alpine-sdk \
> +    bash \
> +    bc \
> +    bzip2 \
> +    bzr \
> +    cpio \
> +    cvs \
> +    file \
> +    flake8 \
> +    grep \
> +    gzip \
> +    mercurial \
> +    ncurses-dev \
> +    perl \
> +    py2-nose \
> +    py2-pexpect \
> +    python \
> +    rsync \
> +    subversion \
> +    unzip \
> +    wget
> +
> +RUN adduser -h /home/br-user -s /bin/bash -D br-user
> +
> +USER br-user
> +WORKDIR /home/br-user
> +ENV HOME /home/br-user
> +ENV LC_ALL en_US.UTF-8
> --
> 2.14.1
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot


More information about the buildroot mailing list