1
0

Dockerfile 923 B

123456789101112131415161718192021222324252627282930
  1. FROM ubuntu:14.04
  2. MAINTAINER Andrew Cantino
  3. ENV DEBIAN_FRONTEND noninteractive
  4. RUN apt-get update && \
  5. apt-get install -y software-properties-common && \
  6. add-apt-repository -y ppa:git-core/ppa && \
  7. add-apt-repository -y ppa:brightbox/ruby-ng && \
  8. apt-get update && \
  9. apt-get install -y build-essential checkinstall postgresql-client \
  10. git-core mysql-server redis-server python2.7 python-docutils \
  11. libmysqlclient-dev libpq-dev zlib1g-dev libyaml-dev libssl-dev \
  12. libgdbm-dev libreadline-dev libncurses5-dev libffi-dev \
  13. libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev \
  14. graphviz libgraphviz-dev \
  15. ruby2.1 ruby2.1-dev supervisor && \
  16. gem install --no-ri --no-rdoc bundler && \
  17. rm -rf /var/lib/apt/lists/*
  18. ADD scripts/ /scripts
  19. RUN chmod 755 /scripts/setup /scripts/init
  20. RUN /scripts/setup
  21. VOLUME /var/lib/mysql
  22. EXPOSE 5000
  23. CMD ["/scripts/init"]