Last active
October 18, 2017 08:59
-
-
Save mistymagich/fa9f0f4f05e0865e191e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
RUN apt-get update | |
RUN apt-get install -y git curl build-essential | |
RUN apt-get upgrade -y && rm -rf /var/lib/apt/lists/* | |
ENV HOME /root | |
ENV ANYENV_HOME $HOME/.anyenv | |
ENV ANYENV_ENV $ANYENV_HOME/envs | |
RUN git clone https://github.com/riywo/anyenv $ANYENV_HOME | |
ENV PATH $ANYENV_HOME/bin:$PATH | |
RUN mkdir $ANYENV_ENV | |
RUN anyenv install pyenv | |
ENV PATH $ANYENV_ENV/pyenv/bin:$ANYENV_ENV/pyenv/shims:$PATH | |
ENV PYENV_ROOT $ANYENV_ENV/pyenv | |
RUN anyenv install rbenv | |
ENV PATH $ANYENV_ENV/rbenv/bin:$ANYENV_ENV/rbenv/shims:$PATH | |
ENV RBENV_ROOT $ANYENV_ENV/rbenv | |
RUN anyenv install ndenv | |
ENV PATH $ANYENV_ENV/ndenv/bin:$ANYENV_ENV/ndenv/shims:$PATH | |
ENV NDENV_ROOT $ANYENV_ENV/ndenv | |
RUN anyenv install phpenv | |
ENV PATH $ANYENV_ENV/phpenv/bin:$ANYENV_ENV/phpenv/shims:$PATH | |
ENV PHPENV_ROOT $ANYENV_ENV/phpenv | |
## pyenv | |
RUN apt-get install -y libbz2-dev libreadline-dev libcurl4-openssl-dev libsqlite3-dev | |
#RUN pyenv install 3.4.3 | |
#RUN pyenv global 3.4.3 | |
#RUN pyenv rehash | |
## rbenv | |
RUN apt-get install -y libcurl4-openssl-dev | |
#RUN rbenv install 2.2.2 | |
#RUN rbenv global 2.2.2 | |
#RUN rbenv rehash | |
## ndenv | |
#RUN ndenv install v0.12.4 | |
#RUN ndenv global v0.12.4 | |
#RUN ndenv rehash | |
## phpenv | |
RUN apt-get install -y re2c bison libxml2-dev libcurl4-openssl-dev libjpeg8-dev \ | |
libpng12-dev libmcrypt-dev libreadline-dev libtidy-dev libxslt1-dev autoconf | |
#RUN phpenv install 5.6.9 | |
#RUN phpenv global 5.6.9 | |
#RUN phpenv rehash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment