blob: 33206b88cc7c91ac8ade560af103964b5769a7e9 [file] [log] [blame]
Tony Mackdc981852016-03-12 14:13:24 +00001FROM ubuntu:14.04.2
2
3RUN echo "deb http://packages.elastic.co/elasticsearch/1.7/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-1.7.list
4
5RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --force-yes\
6 openjdk-7-jre-headless \
7 wget \
8 elasticsearch
9
10VOLUME ["/data"]
11
12ADD conf/elasticsearch.yml /etc/elasticsearch/elasticsearch.yml
13ADD conf/elasticsearch.yml /usr/share/elasticsearch/config
14
15WORKDIR /data
16
17# Expose ports.
18# - 9200: HTTP
19# - 9300: transport
20EXPOSE 9200
21EXPOSE 9300
22
23CMD ["/usr/share/elasticsearch/bin/elasticsearch"]