Created
          April 16, 2020 12:16 
        
      - 
      
- 
        Save iliakg/276fe33a542c41e2859d9b9f839401cd to your computer and use it in GitHub Desktop. 
    docker image based on ubuntu:18.04 with docker, erlang, elixir
  
        
  
    
      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
    
  
  
    
  | # docker image based on ubuntu:18.04 with docker, erlang, elixir | |
| FROM ubuntu:18.04 | |
| RUN apt-get update -qq && \ | |
| apt-get upgrade -qq -y && \ | |
| apt-get install -qq -y \ | |
| build-essential \ | |
| autoconf \ | |
| libncurses5-dev \ | |
| libssh-dev \ | |
| unixodbc-dev \ | |
| git \ | |
| curl \ | |
| unzip \ | |
| docker.io \ | |
| inotify-tools && \ | |
| apt-get clean -qq -y && \ | |
| apt-get autoclean -qq -y && \ | |
| apt-get autoremove -qq -y && \ | |
| rm -rf /var/cache/debconf/*-old && \ | |
| rm -rf /var/lib/apt/lists/* && \ | |
| rm -rf /usr/share/doc/* | |
| ENV LANG C.UTF-8 | |
| RUN useradd -ms $(which bash) asdf | |
| ENV PATH /home/asdf/.asdf/bin:/home/asdf/.asdf/shims:$PATH | |
| USER asdf | |
| # asdf, erlang | |
| RUN /bin/bash -c "git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.2.1 && \ | |
| asdf plugin-add erlang https://github.com/asdf-vm/asdf-erlang.git && \ | |
| asdf install erlang 22.1 && \ | |
| asdf global erlang 22.1 && \ | |
| rm -rf /tmp/*" | |
| # elixir | |
| RUN /bin/bash -c "asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git && \ | |
| asdf install elixir 1.9.3 && \ | |
| asdf global elixir 1.9.3 && \ | |
| rm -rf /tmp/*" | |
| CMD elixir -v && docker version && docker info | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment