-
-
Save formigarafa/474af0ce654389c2aabe34d9f0a0b881 to your computer and use it in GitHub Desktop.
[docker] ruby-1.8.7 with rails-2.3.18 image
This file contains 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 build -t ruby-1.8.7 . | |
# docker run -it --rm ruby-1.8.7 | |
FROM ubuntu:16.04 | |
WORKDIR /root | |
RUN apt update | |
RUN apt upgrade -y | |
RUN apt install -y ruby-build autoconf subversion bison | |
RUN apt install -y mecab mecab-ipadic-utf8 wget | |
RUN apt build-dep -y ruby2.3 ruby-sqlite3 ruby-mecab | |
ENV PATH /root/.rbenv/shims:$PATH | |
RUN rbenv install 1.8.7-p375 | |
RUN rbenv local 1.8.7-p375 | |
RUN gem install sqlite3 | |
RUN gem install rake -v 0.8.7 | |
RUN gem install mongrel | |
RUN gem install rails -v 2.3.18 | |
RUN rbenv rehash | |
RUN wget http://mecab.googlecode.com/files/mecab-ruby-0.994.tar.gz | |
RUN tar xf mecab-ruby-0.994.tar.gz | |
WORKDIR /root/mecab-ruby-0.994 | |
RUN gem build mecab-ruby.gemspec | |
RUN gem install mecab-ruby | |
WORKDIR /root | |
CMD bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get this error:
The command '/bin/sh -c apt build-dep -y ruby2.3 ruby-sqlite3 ruby-mecab' returned a non-zero code: 100