Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- 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"]
|