From 12f7f49bdac6a964907cc098b4203c6b874ac4d9 Mon Sep 17 00:00:00 2001 From: MaxB Date: Wed, 30 Oct 2024 17:11:58 +0200 Subject: [PATCH] move PIP_BREAK_SYSTEM_PACKAGES=1 to RUN instead of setting it as anv var --- alpine/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/alpine/Dockerfile b/alpine/Dockerfile index 60a3ee540..e0e3e4172 100644 --- a/alpine/Dockerfile +++ b/alpine/Dockerfile @@ -45,7 +45,6 @@ RUN set -eux; \ ENV REDIS_DOWNLOAD_URL=https://github.com/redis/redis/archive/refs/tags/8.0-m02.tar.gz ENV REDIS_DOWNLOAD_SHA=c70d565c5403c5e8392942810e980b23478b82218f6069656ea51bc8978176c1 -ENV PIP_BREAK_SYSTEM_PACKAGES=1 RUN set -eux; \ \ apk add --no-cache --virtual .build-deps \ @@ -100,7 +99,7 @@ RUN set -eux; \ fi; \ \ # install required python packages for RedisJSON module - pip install -q --upgrade setuptools && pip install -q --upgrade pip && pip install -q addict toml jinja2 ramp-packer ;\ + 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; \