Dockerfile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. FROM ubuntu:xenial
  2. # install build + test dependencies
  3. RUN apt-get update && \
  4. apt-get install --yes --no-install-recommends \
  5. ca-certificates \
  6. curl \
  7. fuse \
  8. g++ \
  9. gcc \
  10. git \
  11. iproute2 \
  12. iputils-ping \
  13. less \
  14. libc6-dev \
  15. make \
  16. pkg-config \
  17. && \
  18. apt-get clean
  19. # install Go
  20. ENV GO_VERSION 1.8.1
  21. RUN curl -fSLo golang.tar.gz "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz" && \
  22. tar -xzf golang.tar.gz -C /usr/local && \
  23. rm golang.tar.gz
  24. ENV GOPATH /go
  25. ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
  26. # install docker CLI
  27. RUN curl -fSLo docker.tar.gz https://get.docker.com/builds/Linux/x86_64/docker-17.04.0-ce.tgz && \
  28. tar -xzf docker.tar.gz -C /usr/local/bin --strip-components=1 docker/docker && \
  29. rm docker.tar.gz
  30. # install jq
  31. RUN curl -fSLo /usr/local/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 && \
  32. chmod +x /usr/local/bin/jq
  33. # install govendor
  34. RUN go get -u github.com/kardianos/govendor
  35. # add custom bashrc
  36. ADD bashrc /root/.bashrc