# Install OSM dependency modules
-RUN --mount=type=cache,target=/root/.cache/pip \
- git clone --filter=blob:none --tags https://osm.etsi.org/gerrit/osm/common.git /tmp/osm-common && \
+RUN git clone --filter=blob:none --tags https://osm.etsi.org/gerrit/osm/common.git /tmp/osm-common && \
cd /tmp/osm-common && \
git fetch origin ${COMMON_GERRIT_REFSPEC} && \
git checkout FETCH_HEAD && \
COPY requirements.txt ./
# Install py-radix from source with a one-line patch (no build isolation)
-RUN --mount=type=cache,target=/root/.cache/pip \
+RUN \
# py-radix is installed as dependency of the ipconflict package
# the installation is a bit special as it is not fully compatible with Alpine library versions
# similar issue reported here: https://github.com/mjschultz/py-radix/issues/70
pip install --no-build-isolation /tmp/py-radix && \
pip install -r requirements.txt
-RUN --mount=type=cache,target=/root/.cache/pip \
- pip install git+https://github.com/mjschultz/py-radix.git && \
+RUN pip install git+https://github.com/mjschultz/py-radix.git && \
pip install -r requirements.txt
COPY . .