Skip to content
Snippets Groups Projects
Commit 6cce2c4e authored by Simon Künzel's avatar Simon Künzel
Browse files

fixup! Add package caching for CI

parent 5a0a3900
No related branches found
No related tags found
No related merge requests found
Checking pipeline status
......@@ -4,8 +4,7 @@ FROM python:3.13-slim AS base
ARG PIP_CACHE_DIR=
ARG APT_CACHE_DIR=
RUN rm -f /etc/apt/apt.conf.d/docker-clean
RUN if ! [ -z "$APT_CACHE_DIR" ]; then echo "Dir::Cache::Archives $APT_CACHE_DIR" >> /etc/apt/apt.conf.d/ci_caching; fi
RUN if ! [ -z "$APT_CACHE_DIR" ]; then echo "Dir::Cache::Archives $APT_CACHE_DIR" > /etc/apt/apt.conf.d/ci_caching; fi
WORKDIR /code
......
......@@ -8,7 +8,7 @@ FROM registry.git.fsmpi.rwth-aachen.de/videoag/backend/${ENV_TYPE}_job_base:${GI
# READ THE NOTE on caching in the README before changing this/for more info!
ARG APT_CACHE_DIR=
RUN rm -f /etc/apt/apt.conf.d/docker-clean
RUN if ! [ -z "$APT_CACHE_DIR" ]; then echo "Dir::Cache::Archives $APT_CACHE_DIR" >> /etc/apt/apt.conf.d/ci_caching; fi
RUN if ! [ -z "$APT_CACHE_DIR" ]; then echo "Dir::Cache::Archives $APT_CACHE_DIR" > /etc/apt/apt.conf.d/ci_caching; fi
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment