Skip to content

Instantly share code, notes, and snippets.

@minhoryang
Last active April 13, 2017 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save minhoryang/5bec640e7d681191b830aa1c37ee0758 to your computer and use it in GitHub Desktop.
Save minhoryang/5bec640e7d681191b830aa1c37ee0758 to your computer and use it in GitHub Desktop.
docker-ubuntu-build-essential-obrian

docker-ubuntu-build-essential-obrian

$ 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
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