Skip to content

Commit c6075dd

Browse files
authored
Update Dockerfile
1 parent c2c53f9 commit c6075dd

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

Dockerfile

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1-
FROM getmeili/meilisearch:v1.7
1+
# Use the official MeiliSearch image as a base
2+
FROM getmeili/meilisearch:latest
23

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
310
EXPOSE 7700
411

5-
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

Comments
 (0)