mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-14 22:32:28 +00:00
26 lines
566 B
Docker
Executable file
26 lines
566 B
Docker
Executable file
FROM java:8u92-jre-alpine
|
|
|
|
MAINTAINER itzg
|
|
|
|
ENV ES_VERSION=2.4.0
|
|
|
|
ADD https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/$ES_VERSION/elasticsearch-$ES_VERSION.tar.gz /tmp/es.tgz
|
|
RUN cd /usr/share && \
|
|
tar xf /tmp/es.tgz && \
|
|
rm /tmp/es.tgz
|
|
|
|
ADD start /start
|
|
|
|
EXPOSE 9200 9300
|
|
|
|
ENV ES_HOME=/usr/share/elasticsearch-$ES_VERSION \
|
|
OPTS=-Dnetwork.host=_non_loopback_ \
|
|
DEFAULT_ES_USER=elasticsearch
|
|
|
|
RUN adduser -S -s /bin/sh $DEFAULT_ES_USER
|
|
|
|
VOLUME ["/data","/conf"]
|
|
|
|
WORKDIR $ES_HOME
|
|
|
|
CMD ["/start"]
|