FROM ubuntu:16.04
# Set the working directory to /app
WORKDIR /ROR
# Copy the current directory contents into the container at /app
ADD . /ROR
# Install any needed packages specified in requirements.txt
RUN \
apt-get update && \
apt-get -y upgrade && \
apt-get install -y git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev nodejs && \
mkdir /ROR && \
cd /ROR && \
git clone https://github.com/rbenv/rbenv.git ~/.rbenv && \
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc && \
echo 'eval "$(rbenv init -)"' >> ~/.bashrc && \
exec $SHELL \ &&
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build && \
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc && \
exec $SHELL && \
rbenv install 2.4.0 && \
rbenv global 2.4.0 && \
ruby -v
No comments:
Post a Comment