forked from rethinkdb/rethinkdb-dockerfiles
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile.tpl
24 lines (18 loc) · 820 Bytes
/
Dockerfile.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM %dist%:%release%
MAINTAINER Anastas Dancha <[email protected]>
ENV RETHINKDB_PACKAGE_VERSION %version%
# Add the RethinkDB repository and public key
# "RethinkDB Packaging <[email protected]>" http://download.rethinkdb.com/apt/pubkey.gpg
RUN apt-key adv --keyserver pgp.mit.edu --recv-keys 1614552E5765227AEC39EFCFA7E00EF33A8F2399 && \
echo "deb http://download.rethinkdb.com/apt %release% main" > /etc/apt/sources.list.d/rethinkdb.list && \
apt-get update && \
apt-get install -y rethinkdb=$RETHINKDB_PACKAGE_VERSION* && \
apt-get install -y --no-install-recommends bind9-host && \
rm -rf /var/lib/apt/lists/*
COPY docker-entrypoint.sh /entrypoint.sh
VOLUME ["/data"]
WORKDIR /data
# process cluster webui
EXPOSE 28015 29015 8080
ENTRYPOINT ["/entrypoint.sh"]
CMD ["--bind","all"]