$ docker build -t ubuntu-build-esssential-obrian .
$ docker run -t -i ubuntu-build-esssential-obrian
$ docker run -t -i -v $(pwd):/opt ubuntu-build-esssential-obrian /bin/bash
Last active
April 13, 2017 09:39
-
-
Save minhoryang/5bec640e7d681191b830aa1c37ee0758 to your computer and use it in GitHub Desktop.
docker-ubuntu-build-essential-obrian
This file contains hidden or 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-build-esssential:latest | |
# sudo | |
USER root | |
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends zsh htop ca-certificates | |
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev | |
USER docker | |
RUN git clone https://github.com/riywo/anyenv ~/.anyenv | |
RUN echo 'export PATH="$HOME/.anyenv/bin:$PATH"' >> ~/.profile | |
RUN echo 'eval "$(anyenv init -)"' >> ~/.profile | |
RUN /bin/bash -c "source ~/.profile && anyenv install pyenv" | |
RUN /bin/bash -c "source ~/.profile && git clone https://github.com/pyenv/pyenv-virtualenv.git \$(pyenv root)/plugins/pyenv-virtualenv" | |
RUN /bin/bash -c "source ~/.profile && git clone git://github.com/concordusapps/pyenv-implict.git \$(pyenv root)/plugins/pyenv-implict" | |
RUN /bin/bash -c "source ~/.profile && git clone git://github.com/yyuu/pyenv-update.git \$(pyenv root)/plugins/pyenv-update" | |
RUN /bin/bash -c "source ~/.profile && pyenv install 2.7.13" | |
RUN /bin/bash -c "source ~/.profile && pyenv install 3.6.1" | |
RUN /bin/bash -c "source ~/.profile && curl -L git.io/antigen > ~/.antigen.zsh" | |
RUN echo 'source .antigen.zsh' >> ~/.zshrc | |
RUN echo 'source .profile' >> ~/.zshrc | |
WORKDIR /home/docker | |
CMD /bin/zsh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment