FROM phusion/baseimage:0.9.17 # fixes 'source: not found' RUN rm /bin/sh && ln -s /bin/bash /bin/sh # Use baseimage-docker's init system. CMD ["/sbin/my_init"] # ...put your own build instructions here... RUN apt-get update RUN apt-get install -y wget # Add the RethinkDB repository and public key RUN apt-key adv --keyserver pgp.mit.edu --recv-keys 1614552E5765227AEC39EFCFA7E00EF33A8F2399 RUN echo "deb http://download.rethinkdb.com/apt trusty main" > /etc/apt/sources.list.d/rethinkdb.list ENV RETHINKDB_PACKAGE_VERSION 2.0.4~0trusty RUN apt-get update \ && sudo apt-get install -y rethinkdb=$RETHINKDB_PACKAGE_VERSION RUN cp /etc/rethinkdb/default.conf.sample /etc/rethinkdb/instances.d/instance1.conf VOLUME ["/data"] WORKDIR /data CMD ["rethinkdb", "--bind", "all"] # process cluster webui EXPOSE 28015 29015 8080 # Clean up APT when done. RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*