Skip to content

Commit e28482b

Browse files
Remove pylibjpeg-libjpeg dependency (#14)
Only JPEG 2000 (pylibjpeg-openjpeg) is used for compression. Meanwhile, pylibjpeg-libjpeg lacks Python 3.14 Linux wheels. Use python:3.14-slim for glibc wheel compatibility Alpine uses musl libc which lacks pre-built wheels for many packages.
1 parent 1182aa9 commit e28482b

3 files changed

Lines changed: 8 additions & 18 deletions

File tree

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# Dockerfile for NHS Manage Breast Screening Gateway - PACS Server
2-
FROM python:3.14-alpine
2+
FROM python:3.14-slim
33

44
# Install system dependencies
5-
RUN apk add sqlite
5+
RUN apt-get update && apt-get install -y --no-install-recommends \
6+
sqlite3 \
7+
&& rm -rf /var/lib/apt/lists/*
68

79
# Install uv for package management
810
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ dependencies = [
1010
"pynetdicom>=3.0.4",
1111
"numpy>=2.4.0,<3",
1212
"pylibjpeg>=2.0.0",
13-
"pylibjpeg-libjpeg>=2.0.0",
14-
"pylibjpeg-openjpeg>=2.2.0",
13+
"pylibjpeg-openjpeg>=2.5.0",
1514
"pillow>=11.0.0",
1615
"websockets==15.0.1",
1716
"requests>=2.32.0",

uv.lock

Lines changed: 3 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)