Dockerfile 782B

123456789101112131415161718192021222324252627282930
  1. FROM ubuntu:14.04
  2. MAINTAINER Andrew Cantino
  3. ADD docker/scripts/prepare /scripts/prepare
  4. RUN /scripts/prepare
  5. ADD docker/multi-process/scripts/standalone-packages /scripts/standalone-packages
  6. RUN /scripts/standalone-packages
  7. WORKDIR /app
  8. ADD ["Gemfile", "Gemfile.lock", "/app/"]
  9. ADD lib/gemfile_helper.rb /app/lib/
  10. ADD vendor/gems /app/vendor/gems
  11. RUN chown -R huginn:huginn /app && \
  12. sudo -u huginn -H echo "gem 'sqlite3', '~> 1.3.11'" >> /app/Gemfile && \
  13. sudo -u huginn -H LC_ALL=en_US.UTF-8 RAILS_ENV=production ON_HEROKU=true bundle install --without test development --path vendor/bundle -j 4
  14. COPY . /app
  15. ADD ["docker/scripts/setup", "docker/multi-process/scripts/init", "/scripts/"]
  16. RUN /scripts/setup
  17. VOLUME /var/lib/mysql
  18. EXPOSE 3000
  19. CMD ["/scripts/init"]