Dockerfile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. FROM centos:6.6
  2. RUN yum install -y initscripts curl tar gcc libc6-dev git gcc-c++ openssl-devel
  3. RUN yum install -y g++ make automake autoconf curl-devel zlib-devel httpd-devel apr-devel apr-util-devel sqlite-devel
  4. RUN yum install -y wget yum-utils bzip2 bzip2-devel
  5. RUN yum install -y fontconfig freetype freetype-devel fontconfig-devel libstdc++
  6. RUN yum install -y rpm-build patch readline readline-devel libtool bison lzma
  7. # Install RUBY 1.9.3
  8. # install necessary utilities
  9. RUN yum install -y which tar
  10. RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
  11. #RUN curl -sSL https://get.rvm.io | bash -s stable
  12. RUN curl -sSl https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer | bash -s stable
  13. RUN source /etc/profile.d/rvm.sh
  14. RUN /bin/bash -l -c "rvm requirements"
  15. RUN /bin/bash -l -c "rvm install 2.1.9"
  16. RUN /bin/bash -l -c "rvm use 2.1.9 --default"
  17. # install nodejs
  18. RUN curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -
  19. RUN yum install -y nodejs --nogpgcheck
  20. ENV GOLANG_VERSION 1.7.4
  21. RUN wget https://storage.googleapis.com/golang/go1.7.4.linux-amd64.tar.gz
  22. RUN tar -C /usr/local -xzf go1.7.4.linux-amd64.tar.gz
  23. ENV PATH /usr/local/go/bin:$PATH
  24. RUN mkdir -p /go/src /go/bin && chmod -R 777 /go
  25. ENV GOPATH /go
  26. ENV PATH /go/bin:$PATH
  27. ADD build.sh /tmp/
  28. WORKDIR /tmp/
  29. CMD ["./build.sh"]