File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,16 @@ LABEL version=1.0 \
99 description="A production grade performance tuned redis docker image created by Opstree Solutions"
1010
1111ARG REDIS_VERSION="stable"
12+ ARG BUILD_WITH_MODULES=yes
13+ ENV BUILD_WITH_MODULES=$BUILD_WITH_MODULES
1214
1315RUN apk add --no-cache su-exec tzdata make curl build-base linux-headers bash openssl-dev
16+ RUN <<EOF
17+ if [ "$BUILD_WITH_MODULES" == "yes" ]; then
18+ apk add autoconf automake bsd-compat-headers cmake cargo python3 py-virtualenv py3-pip git llvm-dev clang-dev clang-static ncurses-dev automake autoconf libtool
19+ apk add clang clang-libclang g++ libffi-dev libgcc openssh openssl py3-cryptography py3-virtualenv python3-dev rsync tar unzip xsimd xz;
20+ fi
21+ EOF
1422
1523WORKDIR /tmp
1624
@@ -52,6 +60,7 @@ RUN apk upgrade --no-cache
5260
5361COPY --from=builder /usr/local/bin/redis-server /usr/local/bin/redis-server
5462COPY --from=builder /usr/local/bin/redis-cli /usr/local/bin/redis-cli
63+ COPY --from=builder /tmp/redis-stable/modules/*/*.so /modules/
5564
5665RUN addgroup -S -g 1000 redis && adduser -S -G redis -u 1000 redis && \
5766 apk add --no-cache bash libstdc++ libssl3 libcrypto3
You can’t perform that action at this time.
0 commit comments