Dockerfile 723 B

12345678910111213141516171819202122232425
  1. FROM ruby:2.3.3
  2. RUN apt-get update -qq && apt-get install -y --no-install-recommends build-essential \
  3. nodejs libpq-dev libcurl3 zlib1g-dev libqt4-dev bison libpq-dev libkrb5-dev libicu-dev \
  4. libssl-dev libyaml-dev libc6-dev libxml2-dev libxslt1-dev libcurl4-openssl-dev
  5. RUN sudo ln -s `which nodejs` /usr/bin/node
  6. ENV RACK_ENV production
  7. ENV RAILS_ENV production
  8. ENV INSTALL_PATH /app
  9. WORKDIR /tmp
  10. COPY Gemfile Gemfile
  11. COPY Gemfile.lock Gemfile.lock
  12. RUN bundle install --without test development
  13. ADD . $INSTALL_PATH
  14. WORKDIR $INSTALL_PATH
  15. COPY . .
  16. RUN bundle install --without test development
  17. COPY Gemfile Gemfile
  18. COPY Gemfile.lock Gemfile.lock
  19. RUN bundle install --deployment
  20. CMD ['config/containers/app_cmd.sh']