Dockerfile.base 828 B

12345678910111213141516171819202122232425262728293031
  1. FROM debian:jessie
  2. RUN apt-get update && \
  3. apt-get -y dist-upgrade && \
  4. apt-get -y install locales sudo vim less curl wget git rsync build-essential syslinux isolinux xorriso \
  5. libblkid-dev libmount-dev libselinux1-dev
  6. RUN locale-gen en_US.UTF-8
  7. RUN curl -sSL https://get.docker.com/ | sh
  8. #ENV LANG en_US.UTF-8
  9. #ENV LANGUAGE en_US:en
  10. #ENV LC_ALL en_US.UTF-8
  11. #ENV TERM linux
  12. ENV GOLANG_VERSION 1.4.2
  13. RUN curl -sSL https://golang.org/dl/go$GOLANG_VERSION.src.tar.gz | tar -v -C /usr/src -xz
  14. RUN cd /usr/src/go/src && ./make.bash --no-clean 2>&1
  15. ENV GOROOT /usr/src/go
  16. ENV PATH $GOROOT/bin:$PATH
  17. RUN go clean -i net
  18. RUN go install -tags netgo std
  19. RUN mkdir -p /go/src /go/bin && chmod -R 777 /go
  20. ENV GOPATH /go
  21. ENV PATH /go/bin:$PATH
  22. RUN go get github.com/tools/godep
  23. WORKDIR /go/src/github.com/rancherio/os