mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-05-31 16:14:51 +00:00
[es] Correcting old-ADD tar file path
This commit is contained in:
@@ -9,7 +9,10 @@ ARG ES_VERSION=5.5.0
|
|||||||
ADD https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-$ES_VERSION.tar.gz /tmp
|
ADD https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-$ES_VERSION.tar.gz /tmp
|
||||||
# need to adapt to both Docker's new remote-unpack-ADD behavior and the old behavior
|
# need to adapt to both Docker's new remote-unpack-ADD behavior and the old behavior
|
||||||
RUN cd /usr/share && \
|
RUN cd /usr/share && \
|
||||||
if [ -f /tmp/elasticsearch-$ES_VERSION.tar.gz ]; then tar xf /tmp/es.tgz; else mv /tmp/elasticsearch-${ES_VERSION} /usr/share; fi && \
|
if [ -f /tmp/elasticsearch-$ES_VERSION.tar.gz ]; then \
|
||||||
|
tar xf /tmp/elasticsearch-$ES_VERSION.tar.gz; \
|
||||||
|
else mv /tmp/elasticsearch-${ES_VERSION} /usr/share; \
|
||||||
|
fi && \
|
||||||
rm -f /tmp/elasticsearch-$ES_VERSION.tar.gz
|
rm -f /tmp/elasticsearch-$ES_VERSION.tar.gz
|
||||||
|
|
||||||
EXPOSE 9200 9300
|
EXPOSE 9200 9300
|
||||||
|
|||||||
Reference in New Issue
Block a user