-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: extend version endpoint with build timestamp and chromium version
Refs: #74
- Loading branch information
Showing
4 changed files
with
23 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
FROM python:3.12.5-slim@sha256:59c7332a4a24373861c4a5f0eec2c92b87e3efeb8ddef011744ef9a751b1d11c | ||
LABEL maintainer="SBB Polarion Team <[email protected]>" | ||
|
||
ARG APP_IMAGE_VERSION | ||
ARG APP_IMAGE_VERSION=0.0.0-dev | ||
|
||
RUN apt-get update && \ | ||
apt-get --yes --no-install-recommends install chromium dbus fonts-dejavu fonts-liberation libpango-1.0-0 libpangoft2-1.0-0 python3-brotli python3-cffi vim && \ | ||
apt-get clean autoclean && \ | ||
apt-get --yes autoremove && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ENV WORKING_DIR=/opt/weasyprint | ||
ENV CHROMIUM_EXECUTABLE_PATH=/usr/bin/chromium | ||
ENV WEASYPRINT_SERVICE_VERSION=$APP_IMAGE_VERSION | ||
ENV WORKING_DIR="/opt/weasyprint" | ||
ENV CHROMIUM_EXECUTABLE_PATH="/usr/bin/chromium" | ||
ENV WEASYPRINT_SERVICE_VERSION=${APP_IMAGE_VERSION} | ||
|
||
WORKDIR ${WORKING_DIR} | ||
|
||
RUN BUILD_TIMESTAMP=$(date -u +"%Y-%m-%dT%H:%M:%SZ") && \ | ||
echo ${BUILD_TIMESTAMP} > "${WORKING_DIR}/.build_timestamp" | ||
|
||
COPY requirements.txt ${WORKING_DIR}/requirements.txt | ||
|
||
RUN pip install --no-cache-dir -r ${WORKING_DIR}/requirements.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters