Compare commits

...

2 Commits

Author SHA1 Message Date
curquiza
75f5375e32 Change Dockerfile because of Alpine change with /usr-merge 2025-10-11 11:04:29 +02:00
PedroTroller
2137606e9d Bump alpine version to 3.22 2025-10-06 16:49:28 +02:00

View File

@@ -1,5 +1,5 @@
# Compile
FROM rust:1.89-alpine3.20 AS compiler
FROM rust:1.89-alpine3.22 AS compiler
RUN apk add -q --no-cache build-base openssl-dev
@@ -20,7 +20,7 @@ RUN set -eux; \
cargo build --release -p meilisearch -p meilitool
# Run
FROM alpine:3.20
FROM alpine:3.22
LABEL org.opencontainers.image.source="https://github.com/meilisearch/meilisearch"
ENV MEILI_HTTP_ADDR 0.0.0.0:7700
@@ -30,11 +30,11 @@ RUN apk add -q --no-cache libgcc tini curl
# add meilisearch and meilitool to the `/bin` so you can run it from anywhere
# and it's easy to find.
COPY --from=compiler /target/release/meilisearch /bin/meilisearch
COPY --from=compiler /target/release/meilitool /bin/meilitool
COPY --from=compiler /target/release/meilisearch /usr/bin/meilisearch
COPY --from=compiler /target/release/meilitool /usr/bin/meilitool
# To stay compatible with the older version of the container (pre v0.27.0) we're
# going to symlink the meilisearch binary in the path to `/meilisearch`
RUN ln -s /bin/meilisearch /meilisearch
RUN ln -s /usr/bin/meilisearch /meilisearch
# This directory should hold all the data related to meilisearch so we're going
# to move our PWD in there.
@@ -45,4 +45,4 @@ WORKDIR /meili_data
EXPOSE 7700/tcp
ENTRYPOINT ["tini", "--"]
CMD /bin/meilisearch
CMD /usr/bin/meilisearch