From ae1e3de575475039f84c6e457a1ef304bfab09e7 Mon Sep 17 00:00:00 2001 From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Tue, 6 Jan 2026 09:20:53 -0800 Subject: [PATCH] Adjusts how our caching works, now that we don't share things. Try to remove the frontend rebuild that isn't needed --- Dockerfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index a7dc6511f..f43f5fa69 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,8 +11,6 @@ COPY ./src-ui /src/src-ui WORKDIR /src/src-ui RUN set -eux \ - && npm update -g pnpm \ - && npm install -g corepack@latest \ && corepack enable \ && pnpm install @@ -110,8 +108,7 @@ ENV PYTHONDONTWRITEBYTECODE=1 \ PYTHONWARNINGS="ignore:::django.http.response:517" \ PNGX_CONTAINERIZED=1 \ # https://docs.astral.sh/uv/reference/settings/#link-mode - UV_LINK_MODE=copy \ - UV_CACHE_DIR=/cache/uv/ + UV_LINK_MODE=copy # # Begin installation and configuration @@ -193,14 +190,13 @@ ARG BUILD_PACKAGES="\ pkg-config" # hadolint ignore=DL3042 -RUN --mount=type=cache,target=${UV_CACHE_DIR},id=python-cache \ - set -eux \ +RUN set -eux \ && echo "Installing build system packages" \ && apt-get update \ && apt-get install --yes --quiet --no-install-recommends ${BUILD_PACKAGES} \ && echo "Installing Python requirements" \ && uv export --quiet --no-dev --all-extras --format requirements-txt --output-file requirements.txt \ - && uv pip install --system --no-python-downloads --python-preference system --requirements requirements.txt \ + && uv pip install --no-cache --system --no-python-downloads --python-preference system --requirements requirements.txt \ && echo "Installing NLTK data" \ && python3 -W ignore::RuntimeWarning -m nltk.downloader -d "/usr/share/nltk_data" snowball_data \ && python3 -W ignore::RuntimeWarning -m nltk.downloader -d "/usr/share/nltk_data" stopwords \