<filename>rethinkdb/2.3.6/Dockerfile
FROM ubuntu:trusty

#MAINTAINER <NAME> <<EMAIL>>
MAINTAINER  wxcsdb88 <<EMAIL>>

# Add the RethinkDB repository and public key
# "RethinkDB Packaging <<EMAIL>>" http://download.rethinkdb.com/apt/pubkey.gpg
RUN apt-key adv --keyserver keys.gnupg.net --recv-keys <KEY>
RUN echo "deb http://download.rethinkdb.com/apt trusty main" > /etc/apt/sources.list.d/rethinkdb.list

ENV RETHINKDB_PACKAGE_VERSION 2.3.6~0trusty

RUN apt-get update \
   && apt-get install -y rethinkdb=$RETHINKDB_PACKAGE_VERSION \
   && rm -rf /var/lib/apt/lists/*

RUN cp /etc/rethinkdb/default.conf.sample /etc/rethinkdb/instances.d/default.conf

VOLUME ["/data"]

WORKDIR /data

#CMD ["rethinkdb", "--bind", "all"]

# process cluster webui
EXPOSE 28015 29015 8080
