mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 20:15:07 +08:00
fix: docker image failed to boot on arm64 node
This commit is contained in:
parent
6e7a0cc65d
commit
42cb94e1f4
@ -17,6 +17,10 @@ COPY meilisearch-http/Cargo.toml meilisearch-http/
|
|||||||
COPY meilisearch-lib/Cargo.toml meilisearch-lib/
|
COPY meilisearch-lib/Cargo.toml meilisearch-lib/
|
||||||
|
|
||||||
ENV RUSTFLAGS="-C target-feature=-crt-static"
|
ENV RUSTFLAGS="-C target-feature=-crt-static"
|
||||||
|
# Issue #2115
|
||||||
|
RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then \
|
||||||
|
export JEMALLOC_SYS_WITH_LG_PAGE=16; \
|
||||||
|
fi
|
||||||
|
|
||||||
# Create dummy main.rs files for each workspace member to be able to compile all the dependencies
|
# Create dummy main.rs files for each workspace member to be able to compile all the dependencies
|
||||||
RUN find . -type d -name "meilisearch-*" | xargs -I{} sh -c 'mkdir {}/src; echo "fn main() { }" > {}/src/main.rs;'
|
RUN find . -type d -name "meilisearch-*" | xargs -I{} sh -c 'mkdir {}/src; echo "fn main() { }" > {}/src/main.rs;'
|
||||||
|
Loading…
Reference in New Issue
Block a user