Last active
May 8, 2022 20:23
-
-
Save mtbdeano/e0dcf071a863cd71e39f727aeab3f83a to your computer and use it in GitHub Desktop.
Minimal elasticsearch 2.4.5 dockerfile for arm64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM openjdk:8-jre-alpine | |
RUN apk update && apk add --nocache curl | |
ENV ELASTIC_CONTAINER true | |
RUN mkdir /usr/share/elasticsearch | |
WORKDIR /usr/share/elasticsearch | |
RUN curl -L -O https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.4.6/elasticsearch-2.4.6.tar.gz | |
RUN tar xzvf elasticsearch-2.4.6.tar.gz && rm -f elasticsearch-2.4.6.tar.gz | |
ENV PATH /usr/share/elasticsearch/elasticsearch-2.4.6/bin:$PATH | |
VOLUME [/elasticseach/data] | |
EXPOSE 9200/tcp 9300/tcp | |
CMD ["/usr/share/elasticsearch/elasticsearch-2.4.6/bin/elasticsearch"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment