feat: mount source code instead of copying into images (#5330)
All checks were successful
continuous-integration/drone/push Build is passing

This should mean we can used cached docker images properly in future.

Co-authored-by: Darragh Elliott <me@delliott.net>
Reviewed-on: #5330
Co-authored-by: delliott <delliott@fsfe.org>
Co-committed-by: delliott <delliott@fsfe.org>
This commit was merged in pull request #5330.
This commit is contained in:
2025-10-08 11:27:30 +00:00
committed by tobiasd
parent e54fff2111
commit 9adbac5f6c
4 changed files with 24 additions and 9 deletions

View File

@@ -32,16 +32,21 @@ ENV PATH="/root/.composer/vendor/bin:$PATH"
ENV UV_PROJECT_ENVIRONMENT=/root/.cache/uv/venv
# Add vent to path
ENV PATH="$UV_PROJECT_ENVIRONMENT/bin:$PATH"
# Set the workdir
WORKDIR /website-source
WORKDIR /website-source-during-build
# Copy the pyproject and build deps
# Done in a seperate step for optimal docker caching
COPY ./pyproject.toml ./uv.lock .
RUN uv sync --no-install-package fsfe_website_build --group dev
# Copy everything else
COPY . .
ENTRYPOINT ["bash", "./pre-commit.entrypoint.sh"]
# Copy entrypoint
COPY pre-commit.entrypoint.sh .
# Set the workdir
WORKDIR /website-source
ENTRYPOINT ["bash", "/website-source-during-build/pre-commit.entrypoint.sh"]