Fix dockerfile for non-local builds (#43591)
Use the `source_elasticsearch` variable to conditionally get the command needed for release builds for the [dockerfiles repository][0]. Fixes https://github.com/elastic/elasticsearch/issues/43590 [0]: https://github.com/elastic/dockerfiles
This commit is contained in:
parent
0dc1c12f13
commit
173338ad37
|
@ -20,7 +20,7 @@ RUN groupadd -g 1000 elasticsearch && \
|
|||
|
||||
WORKDIR /usr/share/elasticsearch
|
||||
|
||||
COPY ${elasticsearch} /opt/
|
||||
${source_elasticsearch}
|
||||
|
||||
RUN tar zxf /opt/${elasticsearch} --strip-components=1
|
||||
RUN grep ES_DISTRIBUTION_TYPE=tar /usr/share/elasticsearch/bin/elasticsearch-env \
|
||||
|
|
Loading…
Reference in New Issue