E-slam commited on
Commit
4d266e8
·
verified ·
1 Parent(s): b14d2d3

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use Elastic’s official Docker image
2
+ FROM docker.elastic.co/elasticsearch/elasticsearch:8.6.1
3
+
4
+ # Single-node mode (no cluster discovery)
5
+ ENV discovery.type=single-node
6
+
7
+ # Copy in your custom config
8
+ COPY elasticsearch.yml /usr/share/elasticsearch/config/
9
+
10
+ # Expose the Space’s HTTP port
11
+ EXPOSE 7860
12
+
13
+ # Launch Elasticsearch (as PID 1)
14
+ CMD ["elasticsearch"]