Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the base version from bullseye 3.9-slim-bullseye to bookworm 3.9.18-slim-bookworm #775

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions app/embedded_fonts.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def embed_fonts(pdf_data):
"gs",
"-o",
"%stdout",
"-dNEWPDF=false", # use old PDF interpreter
"-sDEVICE=pdfwrite",
"-sstdout=%stderr",
"-dAutoRotatePages=/None",
Expand Down
1 change: 1 addition & 0 deletions app/transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def convert_pdf_to_cmyk(input_data):
"-", # write to STDOUT
"-dCompatibilityLevel=1.7", # DVLA require PDF v1.7 (see edaad254)
"-sDEVICE=pdfwrite", # generate PDF output
"-dNEWPDF=false", # use old PDF interpreter
"-sColorConversionStrategy=CMYK",
"-sSourceObjectICC=app/ghostscript/control.txt", # custom mappings to ensure black -> black (see a890f9f0)
"-dBandBufferSpace=100000000", # make it faster (see 14233fb0)
Expand Down
14 changes: 7 additions & 7 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG BASE_IMAGE=ghcr.io/alphagov/notify/notifications-template-preview:base
FROM python:3.9-slim-bullseye as base
FROM python:3.9.18-slim-bookworm as base

ENV PYTHONUNBUFFERED=1
ENV DEBIAN_FRONTEND=noninteractive
Expand All @@ -9,13 +9,13 @@ RUN echo "Install binary app dependencies" \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
libcurl4 \
libpango1.0-dev=1.46.2-3 \
imagemagick=8:6.9.11.60+dfsg-1.3+deb11u1 \
ghostscript=9.53.3~dfsg-7+deb11u6 \
poppler-utils=20.09.0-3.1+deb11u1 \
gsfonts=1:8.11+urwcyr1.0.7~pre44-4.5 \
libpango1.0-dev=1.50.12+ds-1 \
imagemagick=8:6.9.11.60+dfsg-1.6 \
ghostscript=10.0.0~dfsg-11+deb12u2 \
poppler-utils=22.12.0-2+b1 \
gsfonts=2:20200910-7 \
fonts-freefont-ttf=20120503-10 \
fonts-wqy-zenhei \
fonts-wqy-zenhei=0.9.45-8 \
make \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/* /tmp/*
Expand Down