File tree Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 1+ .idea
Original file line number Diff line number Diff line change @@ -21,8 +21,14 @@ RUN curl -fL -Lo redis-${REDIS_VERSION}.tar.gz ${REDIS_DOWNLOAD_URL}/redis-${RED
2121
2222WORKDIR /tmp/redis-${REDIS_VERSION}
2323
24- RUN make && \
25- make install BUILD_TLS=yes
24+ RUN arch="$(uname -m)" ; \
25+ extraJemallocConfigureFlags="--with-lg-page=16" ; \
26+ if [ "$arch" = "aarch64" ] || [ "$arch" = "arm64" ]; then \
27+ sed -ri 's!cd jemalloc && ./configure !&' "$extraJemallocConfigureFlags" ' !' /tmp/redis-${REDIS_VERSION}/deps/Makefile; \
28+ fi; \
29+ export BUILD_TLS=yes; \
30+ make all; \
31+ make install
2632
2733FROM alpine:3.15
2834
Original file line number Diff line number Diff line change @@ -16,8 +16,14 @@ WORKDIR /tmp
1616
1717RUN curl -fL -Lo redis-${REDIS_SENTINEL_VERSION}.tar.gz ${REDIS_DOWNLOAD_URL}/redis-${REDIS_SENTINEL_VERSION}.tar.gz && \
1818 tar xvzf redis-${REDIS_SENTINEL_VERSION}.tar.gz && \
19- make -C redis-${REDIS_SENTINEL_VERSION} && \
20- make -C redis-${REDIS_SENTINEL_VERSION} install BUILD_TLS=yes
19+ arch="$(uname -m)"; \
20+ extraJemallocConfigureFlags="--with-lg-page=16"; \
21+ if [ "$arch" = "aarch64" ] || [ "$arch" = "arm64" ]; then \
22+ sed -ri 's!cd jemalloc && ./configure !&'"$extraJemallocConfigureFlags"' !' /tmp/redis-${REDIS_SENTINEL_VERSION}/deps/Makefile; \
23+ fi; \
24+ export BUILD_TLS=yes; \
25+ make -C redis-${REDIS_SENTINEL_VERSION} all; \
26+ make -C redis-${REDIS_SENTINEL_VERSION} install
2127
2228FROM alpine:3.15
2329
You can’t perform that action at this time.
0 commit comments