Guest User

Untitled

a guest
Dec 17th, 2017
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. FROM ubuntu:xenial
  2. MAINTAINER Genki Sugawara <sgwr_dts@yahoo.co.jp>
  3.  
  4. USER root
  5. WORKDIR /
  6.  
  7. RUN apt-get update
  8. RUN apt-get install -y ruby
  9. RUN apt-get install -y ruby-dev
  10. RUN apt-get install -y build-essential
  11. RUN apt-get install -y zlib1g-dev
  12. RUN apt-get install -y libxml2-dev
  13. RUN apt-get install -y libsqlite3-dev
  14. RUN apt-get install -y nodejs
  15. RUN gem install rails
  16. RUN rails new hello --skip-bundle
  17. RUN sed -i '/puma/d' hello/Gemfile
  18. RUN echo 'gem "unicorn"' >> hello/Gemfile
  19. RUN bundle config --global silence_root_warning 1
  20. RUN cd /hello && bundle
  21. ADD unicorn.conf.rb /hello/config/
  22.  
  23. ADD init.sh /
  24. RUN chmod +x /init.sh
  25.  
  26. EXPOSE 8080
  27.  
  28. CMD ["/init.sh"]
Add Comment
Please, Sign In to add comment