Fix 11077. Update Dockerfile.production to remove the mount type cache 43/15643/2
authorcaviedesj <juancamilo.caviedesvalencia.ext@telefonica.com>
Fri, 9 Jan 2026 10:36:28 +0000 (11:36 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 12 Jan 2026 10:07:21 +0000 (11:07 +0100)
Change-Id: I867e14c379935a22e77f2c6ac559d66a34cbc96e
Signed-off-by: caviedesj <juancamilo.caviedesvalencia.ext@telefonica.com>
Dockerfile.production

index 9d99ea2..36519b6 100644 (file)
@@ -57,8 +57,7 @@ ENV PATH="/app/osmclient/.venv/bin:$PATH"
 # Install OSM packages (assuming they provide source packages or wheels)
 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 && \
@@ -67,8 +66,7 @@ RUN --mount=type=cache,target=/root/.cache/pip \
   pip install /tmp/osm-im
 
 COPY . /tmp/osmclient/
-RUN --mount=type=cache,target=/root/.cache/pip \
-    cd /tmp/osmclient && \
+RUN cd /tmp/osmclient && \
     pip install --no-cache-dir -r /tmp/osmclient/requirements.txt && \
     pip install /tmp/osmclient && \
     cd -