-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (29 loc) · 770 Bytes
/
Dockerfile
File metadata and controls
36 lines (29 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#
# RethinkDB Dockerfile
#
# https://github.com/dockerfile/rethinkdb
#
# Pull base image.
FROM dockerfile/ubuntu
# Install RethinkDB.
RUN \
echo "deb http://download.rethinkdb.com/apt `lsb_release -cs` main" > /etc/apt/sources.list.d/rethinkdb.list && \
wget -O- http://download.rethinkdb.com/apt/pubkey.gpg | apt-key add - && \
apt-get update && \
apt-get install -y rethinkdb python-pip && \
rm -rf /var/lib/apt/lists/*
# Install python driver for rethinkdb
RUN pip install rethinkdb
# Define mountable directories.
VOLUME ["/data"]
# Define working directory.
WORKDIR /data
# Define default command.
CMD ["rethinkdb", "--bind", "all"]
# Expose ports.
# - 8080: web UI
# - 28015: process
# - 29015: cluster
EXPOSE 8080
EXPOSE 28015
EXPOSE 29015