Skip to content

Commit 4c6ff5e

Browse files
committed
1 parent 82c652f commit 4c6ff5e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff 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

1111
ARG REDIS_VERSION="stable"
12+
ARG BUILD_WITH_MODULES=yes
13+
ENV BUILD_WITH_MODULES=$BUILD_WITH_MODULES
1214

1315
RUN 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

1523
WORKDIR /tmp
1624

@@ -52,6 +60,7 @@ RUN apk upgrade --no-cache
5260

5361
COPY --from=builder /usr/local/bin/redis-server /usr/local/bin/redis-server
5462
COPY --from=builder /usr/local/bin/redis-cli /usr/local/bin/redis-cli
63+
COPY --from=builder /tmp/redis-stable/modules/*/*.so /modules/
5564

5665
RUN addgroup -S -g 1000 redis && adduser -S -G redis -u 1000 redis && \
5766
apk add --no-cache bash libstdc++ libssl3 libcrypto3

0 commit comments

Comments
 (0)