Last active
February 2, 2017 00:58
-
-
Save olkeene/9aa2b51302e1bfd962a8bb8f499c315e to your computer and use it in GitHub Desktop.
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
| FROM ruby:2.1-slim | |
| RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - | |
| RUN apt-get update -qq && \ | |
| apt-get install -y \ | |
| build-essential git \ | |
| libmysqlclient-dev mysql-client libxslt-dev libxml2-dev \ | |
| curl net-tools libgeos-dev \ | |
| wkhtmltopdf \ | |
| nodejs \ | |
| --no-install-recommends && \ | |
| apt-get clean | |
| RUN curl -o sphinx.tar.gz http://sphinxsearch.com/files/sphinx-2.2.11-release.tar.gz && \ | |
| tar -zxvf sphinx.tar.gz && \ | |
| curl -o libstemmer_c.tgz http://snowball.tartarus.org/dist/libstemmer_c.tgz && \ | |
| tar -xvzf libstemmer_c.tgz && \ | |
| cd sphinx-*/ && \ | |
| cp -R ../libstemmer_c/* ./libstemmer_c && \ | |
| ./configure --with-mysql --with-libstemmer && \ | |
| make && make install | |
| ENV APP /app | |
| ENV BUNDLE_PATH /bundle | |
| # Gems | |
| RUN gem install bundler | |
| WORKDIR /tmp | |
| ADD Gemfile Gemfile | |
| ADD Gemfile.lock Gemfile.lock | |
| ADD vendor vendor | |
| RUN bundle install | |
| # App | |
| RUN mkdir $APP | |
| WORKDIR $APP | |
| ADD . $APP | |
| # Not compatible with your operating system or architecture: [email protected] | |
| # https://github.com/npm/npm/issues/13880 | |
| RUN npm install --no-optional | |
| EXPOSE 3000 | |
| ENTRYPOINT bin/docker-entrypoint.sh $0 $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment