remove apt caching

This commit is contained in:
ThePhaseless 2025-02-28 19:16:09 +01:00
parent 9a1d0ef218
commit ea1cf93456
2 changed files with 2 additions and 27 deletions

View File

@ -95,27 +95,6 @@ jobs:
tags: type=raw,value=${{ steps.vars.outputs.LOCAL_TAG }}
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Set up apt cache
uses: actions/cache@v4
id: cache
with:
path: |
var-cache-apt
var-lib-apt
/root/.cache/uv
key: cache-${{ hashFiles('Dockerfile') }}-${{ steps.vars.outputs.SURFIX }}
- name: Inject cache into docker
uses: reproducible-containers/buildkit-cache-dance@v3.1.2
with:
cache-map: |
{
"var-cache-apt": "/var/cache/apt",
"var-lib-apt": "/var/lib/apt",
"root-cache-uv": "/root/.cache/uv"
}
skip-extraction: ${{ steps.cache.outputs.cache-hit }}
# Build and export Docker image for each platform (without pushing)
- name: Build Docker image
id: build

View File

@ -15,12 +15,8 @@ ENV PATH="${HOME}/.local/bin:$PATH"
WORKDIR /app
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
rm -f /etc/apt/apt.conf.d/docker-clean && \
echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' >/etc/apt/apt.conf.d/keep-cache && \
apt update && \
apt install -y --no-install-recommends --no-install-suggests xauth xvfb scrot wget chromium chromium-driver ca-certificates
RUN apt-get update && \
apt-get install -y --no-install-recommends --no-install-suggests xauth xvfb scrot wget chromium chromium-driver ca-certificates
ADD https://astral.sh/uv/install.sh install.sh
RUN sh install.sh