Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install redis-cli with tls in alpine
export REDIS_VERSION="6.0.4"
apk add --update --no-cache --virtual build-deps gcc make linux-headers musl-dev tar openssl-dev pkgconfig
wget -O redis.tar.gz "$REDIS_DOWNLOAD_URL"
mkdir -p /usr/src/redis
tar -xzf redis.tar.gz -C /usr/src/redis --strip-components=1
cd /usr/src/redis/src
make BUILD_TLS=yes MALLOC=libc redis-cli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment