We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2c53f9 commit c6075ddCopy full SHA for c6075dd
Dockerfile
@@ -1,5 +1,17 @@
1
-FROM getmeili/meilisearch:v1.7
+# Use the official MeiliSearch image as a base
2
+FROM getmeili/meilisearch:latest
3
4
+# Set environment variables
5
+#ENV MEILI_HOST=0.0.0.0:7700
6
+ENV MEILI_HTTP_ADDR=0.0.0.0:7700
7
+ENV MEILI_NO_ANALYTICS=true
8
+
9
+# Expose the default MeiliSearch HTTP port to the host
10
EXPOSE 7700
11
-CMD ["meilisearch"]
12
+# Create and set the MeiliSearch data directory
13
+RUN mkdir -p /meili_data
14
+RUN chmod -R 777 /meili_data
15
+VOLUME ["/meili_data"]
16
17
+# The base image already defines an ENTRYPOINT that runs MeiliSearch
0 commit comments