FROM debian:jessie ENV DEBIAN_FRONTEND noninteractive RUN apt-get update -q 2 && apt-get install -y --no-install-recommends git \ bundler \ ruby-dev \ libgmp-dev \ build-essential \ nodejs \ mysql-client RUN git clone https://repo.grnet.gr/source/webdns.git /srv/webdns RUN apt-get install -y --no-install-recommends capistrano unicorn rails ruby-mysql2 ruby-jquery-rails WORKDIR /srv/webdns RUN bundle install EXPOSE 8080 COPY seeds_policies.rb / COPY seeds_users.rb / COPY entrypoint.sh / RUN chmod u+x /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"]