1b0b007bf1
continuous-integration/drone/push Build is passing
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | debian | stage | patch | `trixie-20260623` → `13` | --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNjkuMSIsInVwZGF0ZWRJblZlciI6IjQzLjI2OS4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=--> Reviewed-on: #6012 Reviewed-by: delliott <420+delliott@fsfe.org> Co-authored-by: Renovate Bot <admin@fsfe.org> Co-committed-by: Renovate Bot <admin@fsfe.org>
43 lines
960 B
Docker
43 lines
960 B
Docker
FROM debian:13
|
|
|
|
COPY --from=ghcr.io/astral-sh/uv /uv /uvx /bin/
|
|
|
|
# Install deps
|
|
RUN apt-get update && apt-get install --yes --no-install-recommends \
|
|
composer \
|
|
file \
|
|
git \
|
|
libxml2 \
|
|
libxml2-utils \
|
|
libxslt1.1 \
|
|
node-less \
|
|
npm \
|
|
php-zip \
|
|
rsync \
|
|
shfmt \
|
|
xsltproc
|
|
|
|
# Install prettier
|
|
RUN npm install -g prettier
|
|
# Install php cs fixer
|
|
RUN composer global require friendsofphp/php-cs-fixer
|
|
# Add composer to path
|
|
ENV PATH="/root/.composer/vendor/bin:$PATH"
|
|
# Set uv project env, to persist stuff moving dirs
|
|
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-during-build
|
|
|
|
# Copy pyproject, build deps & entrypoint
|
|
COPY ./pyproject.toml ./uv.lock pre-commit.entrypoint.sh ./
|
|
|
|
RUN uv sync --no-install-package fsfe_website_build --all-groups
|
|
|
|
# Set the workdir
|
|
WORKDIR /website-source
|
|
|
|
ENTRYPOINT ["/website-source-during-build/pre-commit.entrypoint.sh"]
|