FROM docker.elastic.co/elasticsearch/elasticsearch:8.12.0 # Set environment variables for single-node mode ENV discovery.type=single-node \ ES_JAVA_OPTS="-Xms512m -Xmx512m" \ xpack.security.enabled=false \ network.host=0.0.0.0 \ http.port=7860 # Expose the required port EXPOSE 7860 # Override default config to use port 7860 RUN echo 'http.port: 7860' >> /usr/share/elasticsearch/config/elasticsearch.yml # Start Elasticsearch CMD ["/bin/bash", "-c", "/usr/local/bin/docker-entrypoint.sh"]