redis logo

redis:alpine3.23

Multi-platform
Also known as:
8-alpine
8-alpine3.23
8.10-alpine
8.10.1-alpine
8.10.1-alpine3.23
alpine
Databases & storage
Index digest

sha256:becdda6c7f4b3fb42e42fd7f120bbf5c54c4caaaf16f26da24e4563d2c1f0576

OS/ARCH

Compressed size

17.16 MB

Last pushed

2 days by doijanky

Type

Image

Manifest digest

sha256:0cb71b99db688ca3a519fd17edc02603e9f147f7eb72d6c1ce8c1adb55019473

Layers (14)

alpine:3.23
0
0
1
0
0
redis:alpine3.23
0
0
0
0
0

2

RUN /bin/sh -c set -eux; addgroup -S -g 1000 redis; adduser -S -G redis -u 999 redis # buildkit

950 B


3

RUN /bin/sh -c set -eux; apk add --no-cache tzdata setpriv ; # buildkit

197.18 KB


4

ENV REDIS_VERSION=8.10.1

0 B


5

ARG REDIS_DOWNLOAD_URL=https://github.com/redis/redis/releases/download/8.10.1/redis-full.tar.gz

0 B


6

ARG REDIS_DOWNLOAD_SHA=e5cae2686231290bf55ae5cc4da01e646c3424233cae7618ebf3a64250ef1583

0 B


7

RUN |2 REDIS_DOWNLOAD_URL=https://github.com/redis/redis/releases/download/8.10.1/redis-full.tar.gz REDIS_DOWNLOAD_SHA=e5cae2686231290bf55ae5cc4da01e646c3424233cae7618ebf3a64250ef1583 /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps coreutils dpkg-dev dpkg gcc linux-headers make musl-dev openssl-dev g++; arch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; case "$arch" in 'amd64' | 'arm64') BUILD_WITH_MODULES=yes ;; *) echo >&2 "Modules are NOT supported! unsupported architecture: '$arch'"; BUILD_WITH_MODULES=no ;; esac; if [ "$BUILD_WITH_MODULES" = "yes" ]; then apk add --no-cache --virtual .module-build-deps autoconf automake bash bsd-compat-headers build-base cargo clang21 clang21-static clang21-libclang cmake curl g++ git libffi-dev libgcc libtool llvm21-dev lld21 ncurses-dev openssh openssl py-virtualenv py3-cryptography py3-pip py3-virtualenv python3 python3-dev rsync tar unzip which xsimd xz; fi; pip install -q --upgrade setuptools && pip install -q --upgrade pip && PIP_BREAK_SYSTEM_PACKAGES=1 pip install -q addict toml jinja2 ramp-packer ; wget -O redis.tar.gz "$REDIS_DOWNLOAD_URL"; echo "$REDIS_DOWNLOAD_SHA *redis.tar.gz" | sha256sum -c -; mkdir -p /usr/src/redis; tar -xzf redis.tar.gz -C /usr/src/redis --strip-components=1; rm redis.tar.gz; grep -E '^ *createBoolConfig[(]"protected-mode",.*, *1 *,.*[)],$' /usr/src/redis/src/config.c; sed -ri 's!^( *createBoolConfig[(]"protected-mode",.*, *)1( *,.*[)],)$!\10\2!' /usr/src/redis/src/config.c; grep -E '^ *createBoolConfig[(]"protected-mode",.*, *0 *,.*[)],$' /usr/src/redis/src/config.c; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; extraJemallocConfigureFlags="--build=$gnuArch"; dpkgArch="$(dpkg --print-architecture)"; case "${dpkgArch##*-}" in amd64 | i386 | x32) extraJemallocConfigureFlags="$extraJemallocConfigureFlags --with-lg-page=12" ;; *) extraJemallocConfigureFlags="$extraJemallocConfigureFlags --with-lg-page=16" ;; esac; extraJemallocConfigureFlags="$extraJemallocConfigureFlags --with-lg-hugepage=21"; grep -F 'cd jemalloc && ./configure ' /usr/src/redis/deps/Makefile; sed -ri 's!cd jemalloc && ./configure !&'"$extraJemallocConfigureFlags"' !' /usr/src/redis/deps/Makefile; grep -F "cd jemalloc && ./configure $extraJemallocConfigureFlags " /usr/src/redis/deps/Makefile; export RUST_DYN_CRT=1; export PATH="/usr/lib/llvm21/bin:$PATH"; export BUILD_TLS=yes; if [ "$BUILD_WITH_MODULES" = "yes" ]; then export LTO=1; make -C /usr/src/redis/modules install-rust INSTALL_RUST_TOOLCHAIN=yes; make -C /usr/src/redis -j "$(nproc)" deploy; make -C /usr/src/redis/modules uninstall-rust INSTALL_RUST_TOOLCHAIN=yes; else make -C /usr/src/redis -j "$(nproc)" deploy redis; fi; rm -r /usr/src/redis; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-network --virtual .redis-rundeps $runDeps; if [ "$BUILD_WITH_MODULES" = "yes" ]; then apk del --no-network .module-build-deps; fi; apk del --no-network .build-deps; rm -rf ~/.cache ~/.gitconfig; redis-cli --version; redis-server --version; # buildkit

14.24 MB


8

RUN |2 REDIS_DOWNLOAD_URL=https://github.com/redis/redis/releases/download/8.10.1/redis-full.tar.gz REDIS_DOWNLOAD_SHA=e5cae2686231290bf55ae5cc4da01e646c3424233cae7618ebf3a64250ef1583 /bin/sh -c mkdir /data && chown redis:redis /data # buildkit

100 B


9

WORKDIR /data

32 B


10

COPY docker-entrypoint.sh /usr/local/bin/ # buildkit

2.11 KB


11

ENTRYPOINT ["docker-entrypoint.sh"]

0 B


12

EXPOSE map[6379/tcp:{}]

0 B


13

CMD ["redis-server"]

0 B