subhrajit-mohanty commited on
Commit
c60614b
·
verified ·
1 Parent(s): 2eb6454

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -5
Dockerfile CHANGED
@@ -1,14 +1,17 @@
1
  FROM docker.elastic.co/elasticsearch/elasticsearch:8.12.0
2
 
3
- # Set environment variables to configure Elasticsearch
4
  ENV discovery.type=single-node \
5
- ES_JAVA_OPTS="-Xms512m -Xmx512m"
 
 
 
6
 
7
- # Expose port 7860
8
  EXPOSE 7860
9
 
10
- # Override default Elasticsearch configuration to listen on port 7860
11
  RUN echo 'http.port: 7860' >> /usr/share/elasticsearch/config/elasticsearch.yml
12
 
13
  # Start Elasticsearch
14
- CMD ["/bin/bash", "-c", "/usr/local/bin/docker-entrypoint.sh"]
 
1
  FROM docker.elastic.co/elasticsearch/elasticsearch:8.12.0
2
 
3
+ # Set environment variables for single-node mode
4
  ENV discovery.type=single-node \
5
+ ES_JAVA_OPTS="-Xms512m -Xmx512m" \
6
+ xpack.security.enabled=false \
7
+ network.host=0.0.0.0 \
8
+ http.port=7860
9
 
10
+ # Expose the required port
11
  EXPOSE 7860
12
 
13
+ # Override default config to use port 7860
14
  RUN echo 'http.port: 7860' >> /usr/share/elasticsearch/config/elasticsearch.yml
15
 
16
  # Start Elasticsearch
17
+ CMD ["/bin/bash", "-c", "/usr/local/bin/docker-entrypoint.sh"]