Here is the Dockerfile I use :
FROM docker.elastic.co/elasticsearch/elasticsearch-oss:7.9.3 ENV ES_PATH=/usr/share/elasticsearch USER root RUN $ES_PATH/bin