<filename>docker/Dockerfile
FROM ubuntu:latest
RUN apt-get update && apt-get install -y \
    wget \
    gnupg \
    curl \
    p7zip-full \
    default-jre

RUN wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.2.3.deb
RUN dpkg -i elasticsearch-6.2.3.deb

RUN apt-get update && apt-get install -y default-jre

RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install analysis-icu
RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install analysis-smartcn

COPY elasticsearch.yml /etc/elasticsearch/
RUN chmod +r /etc/elasticsearch/elasticsearch.yml

EXPOSE 9200 9300

CMD service elasticsearch start && tail -f var/log/elasticsearch/docker-cluster.log
