-
Notifications
You must be signed in to change notification settings - Fork 305
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (27 loc) · 754 Bytes
/
Dockerfile
File metadata and controls
34 lines (27 loc) · 754 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
#
# ElasticSearch Dockerfile
#
# https://github.com/dockerfile/elasticsearch
#
# Pull base image.
FROM dockerfile/java:oracle-java7
# Install ElasticSearch.
RUN \
cd /tmp && \
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.3.4.tar.gz && \
tar xvzf elasticsearch-1.3.4.tar.gz && \
rm -f elasticsearch-1.3.4.tar.gz && \
mv /tmp/elasticsearch-1.3.4 /elasticsearch
# Define mountable directories.
VOLUME ["/data"]
# Mount elasticsearch.yml config
ADD config/elasticsearch.yml /elasticsearch/config/elasticsearch.yml
# Define working directory.
WORKDIR /data
# Define default command.
CMD ["/elasticsearch/bin/elasticsearch"]
# Expose ports.
# - 9200: HTTP
# - 9300: transport
EXPOSE 9200
EXPOSE 9300