mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-27 07:14:26 +01:00
09a94e0db3
even though docker cache was being used earlier for uffizzi builds, seems like the cache layers weren't persisting. This commit adds changes to move meilisearch building outside the dockerfile so that we can use the rust cache action. We are also building to the musl target so that the binary for meilisearch which is created can be used for the uffizzi ttyd image which uses alpine.
20 lines
439 B
Docker
20 lines
439 B
Docker
# Run
|
|
FROM uffizzi/ttyd:alpine
|
|
|
|
ENV MEILI_HTTP_ADDR 0.0.0.0:7700
|
|
ENV MEILI_SERVER_PROVIDER docker
|
|
ENV MEILI_NO_ANALYTICS true
|
|
|
|
RUN apk update --quiet \
|
|
&& apk add -q --no-cache libgcc tini curl
|
|
|
|
COPY target/x86_64-unknown-linux-musl/release/meilisearch /bin/meilisearch
|
|
RUN ln -s /bin/meilisearch /meilisearch
|
|
|
|
WORKDIR /meili_data
|
|
|
|
EXPOSE 7700/tcp
|
|
|
|
ENTRYPOINT ["tini", "--"]
|
|
CMD ["ttyd", "/bin/zsh"]
|