Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM ubuntu:xenial
- MAINTAINER Genki Sugawara <sgwr_dts@yahoo.co.jp>
- USER root
- WORKDIR /
- RUN apt-get update
- RUN apt-get install -y ruby
- RUN apt-get install -y ruby-dev
- RUN apt-get install -y build-essential
- RUN apt-get install -y zlib1g-dev
- RUN apt-get install -y libxml2-dev
- RUN apt-get install -y libsqlite3-dev
- RUN apt-get install -y nodejs
- RUN gem install rails
- RUN rails new hello --skip-bundle
- RUN sed -i '/puma/d' hello/Gemfile
- RUN echo 'gem "unicorn"' >> hello/Gemfile
- RUN bundle config --global silence_root_warning 1
- RUN cd /hello && bundle
- ADD unicorn.conf.rb /hello/config/
- ADD init.sh /
- RUN chmod +x /init.sh
- EXPOSE 8080
- CMD ["/init.sh"]
Add Comment
Please, Sign In to add comment