github.com/rita33cool1/iot-system-gateway@v0.0.0-20200911033302-e65bde238cc5/docker-engine/Dockerfile.simple (about)

     1  # docker build -t docker:simple -f Dockerfile.simple .
     2  # docker run --rm docker:simple hack/make.sh dynbinary
     3  # docker run --rm --privileged docker:simple hack/dind hack/make.sh test-unit
     4  # docker run --rm --privileged -v /var/lib/docker docker:simple hack/dind hack/make.sh dynbinary test-integration
     5  
     6  # This represents the bare minimum required to build and test Docker.
     7  
     8  FROM debian:stretch
     9  
    10  # allow replacing httpredir or deb mirror
    11  ARG APT_MIRROR=deb.debian.org
    12  RUN sed -ri "s/(httpredir|deb).debian.org/$APT_MIRROR/g" /etc/apt/sources.list
    13  
    14  # Compile and runtime deps
    15  # https://github.com/docker/docker/blob/master/project/PACKAGERS.md#build-dependencies
    16  # https://github.com/docker/docker/blob/master/project/PACKAGERS.md#runtime-dependencies
    17  RUN apt-get update && apt-get install -y --no-install-recommends \
    18  		btrfs-tools \
    19  		build-essential \
    20  		curl \
    21  		cmake \
    22  		gcc \
    23  		git \
    24  		libapparmor-dev \
    25  		libdevmapper-dev \
    26  		libseccomp-dev \
    27  		ca-certificates \
    28  		e2fsprogs \
    29  		iptables \
    30  		pkg-config \
    31  		pigz \
    32  		procps \
    33  		xfsprogs \
    34  		xz-utils \
    35  		\
    36  		aufs-tools \
    37  		vim-common \
    38  	&& rm -rf /var/lib/apt/lists/*
    39  
    40  # Install Go
    41  # IMPORTANT: If the version of Go is updated, the Windows to Linux CI machines
    42  #            will need updating, to avoid errors. Ping #docker-maintainers on IRC
    43  #            with a heads-up.
    44  # IMPORTANT: When updating this please note that stdlib archive/tar pkg is vendored
    45  ENV GO_VERSION 1.9.5
    46  RUN curl -fsSL "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz" \
    47  	| tar -xzC /usr/local
    48  ENV PATH /go/bin:/usr/local/go/bin:$PATH
    49  ENV GOPATH /go
    50  ENV CGO_LDFLAGS -L/lib
    51  
    52  # Install runc, containerd, tini and docker-proxy
    53  # Please edit hack/dockerfile/install/<name>.installer to update them.
    54  COPY hack/dockerfile/install hack/dockerfile/install
    55  RUN for i in runc containerd tini proxy dockercli; \
    56  		do hack/dockerfile/install/install.sh $i; \
    57  	done
    58  ENV PATH=/usr/local/cli:$PATH
    59  
    60  ENV AUTO_GOPATH 1
    61  WORKDIR /usr/src/docker
    62  COPY . /usr/src/docker