Skip to content

Instantly share code, notes, and snippets.

@mtbdeano
Last active May 8, 2022 20:23
Show Gist options
  • Save mtbdeano/e0dcf071a863cd71e39f727aeab3f83a to your computer and use it in GitHub Desktop.
Save mtbdeano/e0dcf071a863cd71e39f727aeab3f83a to your computer and use it in GitHub Desktop.
Minimal elasticsearch 2.4.5 dockerfile for arm64
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