github.com/fafucoder/cilium@v1.6.11/contrib/packaging/deb/Dockerfile (about) 1 FROM ubuntu:16.04 2 3 LABEL maintainer "Eloy Coto <eloy.coto@gmail.com>" 4 ENV GOLANG_VERSION 1.9 5 6 RUN apt-get update && \ 7 apt-get install -y --no-install-recommends \ 8 dh-golang devscripts fakeroot dh-make clang git libdistro-info-perl \ 9 dh-systemd build-essential curl gcc make libc6-dev.i386 \ 10 python-docutils ca-certificates git-buildpackage llvm && \ 11 curl -Sslk -o go.tar.gz \ 12 "https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-amd64.tar.gz" && \ 13 tar -C /usr/local -xzf go.tar.gz && \ 14 rm go.tar.gz && \ 15 export PATH="/usr/local/go/bin:$PATH"; \ 16 go version; \ 17 mkdir -p /opt/cilium/ 18 19 ENV GOPATH /go 20 ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH 21 22 RUN go get -u github.com/cilium/go-bindata/... 23 24 RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH" 25 WORKDIR $GOPATH 26 27 ADD . /opt/cilium 28 29 VOLUME ["/output"] 30 ENTRYPOINT /opt/cilium/create_deb.sh