All checks were successful
continuous-integration/drone/push Build is passing
also removed comment as it is no longer relevant Signed-off-by: Filip Kobierski <fkobi@fsfe.org> I recommend side-by-side diff for reviewing the changes Reviewed-on: #5562 Reviewed-by: delliott <delliott@fsfe.org> Co-authored-by: Filip Kobierski <fkobi@fsfe.org> Co-committed-by: Filip Kobierski <fkobi@fsfe.org>
46 lines
990 B
Docker
46 lines
990 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 \
|
|
curl \
|
|
file \
|
|
git \
|
|
libxml2 \
|
|
libxml2-utils \
|
|
libxslt1.1 \
|
|
mediainfo \
|
|
node-less \
|
|
npm \
|
|
perl-base \
|
|
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 --group dev
|
|
|
|
# Set the workdir
|
|
WORKDIR /website-source
|
|
|
|
ENTRYPOINT ["/website-source-during-build/pre-commit.entrypoint.sh"]
|