shubhamgoyal

DockerFile

Apr 10th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. FROM python:3.6.2
  2. MAINTAINER [email protected]
  3.  
  4. # Install apt based dependencies required to run Rails as
  5. #g well as RubyGems. As the Ruby image itself is based on a
  6. # Debian image, we use apt-get to install those.
  7. RUN apt-get update && apt-get install -y build-essential
  8.  
  9. # Configure the main working directory. This is the base
  10. # directory used in any further RUN, COPY, and ENTRYPOINT
  11. # commands.
  12. ENV HEYMAN_HOME /home/ubuntu/apps/heyman/current
  13. RUN mkdir -p $HEYMAN_HOME
  14. WORKDIR $HEYMAN_HOME
  15.  
  16. RUN git clone https://github.com/yyuu/pyenv.git $HEYMAN_HOME/.pyenv
  17.  
  18. ENV PYENV_ROOT $HEYMAN_HOME/.pyenv
  19. ENV PATH $PYENV_ROOT/bin:$PATH
  20.  
  21. RUN git clone https://github.com/yyuu/pyenv-virtualenv.git $PYENV_ROOT/plugins/pyenv-virtualenv
  22.  
  23. RUN eval "$(pyenv init -)"
  24. RUN eval "$(pyenv virtualenv-init -)"
  25.  
  26. RUN apt-get install -y libwmf-bin
  27. RUN apt-get install libmagickwand-dev
  28. RUN apt-get install -y vim
  29.  
  30. # Copy the Gemfile as well as the Gemfile.lock and install
  31. # the RubyGems. This is a separate step so the dependencies
  32. # will be cached unless changes to one of those two files
  33. # are made.
  34. ADD requirements.txt $HEYMAN_HOME/
  35. RUN pip install -r requirements.txt
  36.  
  37. ADD . $HEYMAN_HOME
Add Comment
Please, Sign In to add comment