mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-13 22:02:28 +00:00
847f403bd3
* also upgraded to 2.1.0 * added a MULTICAST env var for supporting networks
28 lines
701 B
Docker
Executable file
28 lines
701 B
Docker
Executable file
FROM itzg/ubuntu-openjdk-7
|
|
|
|
MAINTAINER itzg
|
|
|
|
ENV ES_VERSION 2.1.0
|
|
|
|
RUN wget -qO /tmp/es.tgz https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/$ES_VERSION/elasticsearch-$ES_VERSION.tar.gz && \
|
|
cd /usr/share && \
|
|
tar xf /tmp/es.tgz && \
|
|
rm /tmp/es.tgz
|
|
|
|
ENV ES_HOME /usr/share/elasticsearch-$ES_VERSION
|
|
RUN useradd -d $ES_HOME -M -r elasticsearch && \
|
|
chown -R elasticsearch: $ES_HOME
|
|
|
|
RUN mkdir /data /conf && touch /data/.CREATED /conf/.CREATED && chown -R elasticsearch: /data /conf
|
|
VOLUME ["/data","/conf"]
|
|
|
|
ADD start /start
|
|
|
|
WORKDIR $ES_HOME
|
|
USER elasticsearch
|
|
|
|
EXPOSE 9200 9300
|
|
|
|
ENV OPTS=-Dnetwork.host=_non_loopback_
|
|
|
|
CMD ["/start"]
|