Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM python:3.6.2
- MAINTAINER [email protected]
- # Install apt based dependencies required to run Rails as
- #g well as RubyGems. As the Ruby image itself is based on a
- # Debian image, we use apt-get to install those.
- RUN apt-get update && apt-get install -y build-essential
- # Configure the main working directory. This is the base
- # directory used in any further RUN, COPY, and ENTRYPOINT
- # commands.
- ENV HEYMAN_HOME /home/ubuntu/apps/heyman/current
- RUN mkdir -p $HEYMAN_HOME
- WORKDIR $HEYMAN_HOME
- RUN git clone https://github.com/yyuu/pyenv.git $HEYMAN_HOME/.pyenv
- ENV PYENV_ROOT $HEYMAN_HOME/.pyenv
- ENV PATH $PYENV_ROOT/bin:$PATH
- RUN git clone https://github.com/yyuu/pyenv-virtualenv.git $PYENV_ROOT/plugins/pyenv-virtualenv
- RUN eval "$(pyenv init -)"
- RUN eval "$(pyenv virtualenv-init -)"
- RUN apt-get install -y libwmf-bin
- RUN apt-get install libmagickwand-dev
- RUN apt-get install -y vim
- # Copy the Gemfile as well as the Gemfile.lock and install
- # the RubyGems. This is a separate step so the dependencies
- # will be cached unless changes to one of those two files
- # are made.
- ADD requirements.txt $HEYMAN_HOME/
- RUN pip install -r requirements.txt
- ADD . $HEYMAN_HOME
Add Comment
Please, Sign In to add comment