Fix 11077. Update Dockerfile.production to remove the mount type cache 45/15645/2
authorcaviedesj <juancamilo.caviedesvalencia.ext@telefonica.com>
Fri, 9 Jan 2026 10:46:40 +0000 (11:46 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 12 Jan 2026 10:15:19 +0000 (11:15 +0100)
Change-Id: Ie3c12b38359c18158717c3938b7d0c0b4092cc98
Signed-off-by: caviedesj <juancamilo.caviedesvalencia.ext@telefonica.com>
Dockerfile.production

index b6c1db5..3b17dee 100644 (file)
@@ -36,8 +36,7 @@ ENV PYTHONUNBUFFERED=1 \
 
 FROM base AS builder
 
-RUN --mount=type=cache,target=/var/cache/apk \
-    apk add --no-cache --virtual .build-deps \
+RUN apk add --no-cache --virtual .build-deps \
         build-base gcc \
             musl-dev \
             libffi-dev \
@@ -82,8 +81,7 @@ RUN curl -L -o /tmp/vcluster "https://github.com/loft-sh/vcluster/releases/downl
 COPY configs/vcluster.yaml /etc/vcluster.yaml
 
 ARG IM_GERRIT_REFSPEC=master
-RUN --mount=type=cache,target=/root/.cache/pip \
-    git clone --filter=blob:none --tags https://osm.etsi.org/gerrit/osm/IM.git /tmp/osm-im && \
+RUN git clone --filter=blob:none --tags https://osm.etsi.org/gerrit/osm/IM.git /tmp/osm-im && \
     cd /tmp/osm-im && \
     git fetch origin ${IM_GERRIT_REFSPEC} && \
     git checkout FETCH_HEAD && \
@@ -93,8 +91,7 @@ RUN --mount=type=cache,target=/root/.cache/pip \
 
 
 ARG CLIENT_GERRIT_REFSPEC=master
-RUN --mount=type=cache,target=/root/.cache/pip \
-    git clone --filter=blob:none --tags https://osm.etsi.org/gerrit/osm/osmclient.git /tmp/osmclient && \
+RUN git clone --filter=blob:none --tags https://osm.etsi.org/gerrit/osm/osmclient.git /tmp/osmclient && \
     cd /tmp/osmclient && \
     git fetch origin ${CLIENT_GERRIT_REFSPEC} && \
     git checkout FETCH_HEAD && \