From 93ea189594f756f20892f64215dc8b6c9a6029b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ernst=20W=C3=BCrger?= Date: Thu, 8 Aug 2024 16:07:50 +0200 Subject: [PATCH] fix(pdf-exporter): Rename stylesheet --- .../{DBS Stylesheet.css => default.css} | 0 .../sbb-pdf-exporter/weasyprint.dockerfile | 19 ------------------- 2 files changed, 19 deletions(-) rename extensions/sbb-pdf-exporter/{DBS Stylesheet.css => default.css} (100%) delete mode 100644 extensions/sbb-pdf-exporter/weasyprint.dockerfile diff --git a/extensions/sbb-pdf-exporter/DBS Stylesheet.css b/extensions/sbb-pdf-exporter/default.css similarity index 100% rename from extensions/sbb-pdf-exporter/DBS Stylesheet.css rename to extensions/sbb-pdf-exporter/default.css diff --git a/extensions/sbb-pdf-exporter/weasyprint.dockerfile b/extensions/sbb-pdf-exporter/weasyprint.dockerfile deleted file mode 100644 index d8b3a86..0000000 --- a/extensions/sbb-pdf-exporter/weasyprint.dockerfile +++ /dev/null @@ -1,19 +0,0 @@ -# SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors -# SPDX-License-Identifier: Apache-2.0 - -FROM python:3.12.3-slim -LABEL maintainer="Polarion Team at SBB " - -RUN apt-get update && \ - apt-get --yes --no-install-recommends install python3-cffi python3-brotli libpango-1.0-0 libpangoft2-1.0-0 fonts-liberation chromium && \ - apt-get clean autoclean && \ - apt-get --yes autoremove && \ - pip install --no-cache-dir weasyprint==62.3 && \ - rm -rf /var/lib/apt/lists/* - -ENV WORKING_DIR=/opt/weasyprint -ENV CHROME_EXECUTABLE_PATH=/usr/bin/chromium - -WORKDIR ${WORKING_DIR} - -ENTRYPOINT [ "weasyprint" ]