Update API with Debian trixie (#1286)

Fix #1273.

- Cleanup `libatlas-base-dev`

  `ATLAS` is an optimized BLAS implementation. Today, the project looks dead. The last stable release (3.10.3)
happened in 2016. The last development release (3.11.41, not packaged) was in 2018. The git repository has seen no commit since 2019. Debian decided to [remove all `libatlas` packages](https://lists.debian.org/debian-science/2023/07/msg00010.html), including `libatlas-base-dev` from `trixie`.

  `libatlas-base-dev` provides a unique `cblas` package with `pkg-config`. Debian provides [`blas`](https://lists.debian.org/debian-science/2023/07/msg00012.html) to cover all the feature in `cblas`. `go-face` already depends on [`blas`](0c14797b4d/face.go (L4)), and it's safe to remove `cblas`.

  Maybe we should fork `go-face` and put those changes in the foked repo.

- Renaming `exiftool`

  In `trixie`, `exiftool` package is renamed as `libimage-exiftool-perl`.
This commit is contained in:
Googol Lee
2025-08-20 21:29:03 +02:00
committed by GitHub
parent 35e65caf7c
commit 03b290eba7
5 changed files with 24 additions and 14 deletions

View File

@@ -39,7 +39,7 @@ RUN export BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%S+00:00(UTC)'); \
npm run build -- --base="${UI_PUBLIC_URL}"
### Build API ###
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.25-bookworm AS api
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.25-trixie AS api
ARG TARGETPLATFORM
# See for details: https://github.com/hadolint/hadolint/wiki/DL4006
@@ -61,7 +61,7 @@ RUN chmod +x /app/scripts/*.sh \
&& /app/scripts/install_runtime_dependencies.sh
# hadolint ignore=DL3022
COPY --from=photoview/dependencies:latest /artifacts.tar.gz /dependencies/
COPY --from=photoview/dependencies:trixie /artifacts.tar.gz /dependencies/
WORKDIR /dependencies
RUN set -a && source /env && set +a \
&& git config --global --add safe.directory /app \
@@ -81,6 +81,7 @@ RUN set -a && source /env && set +a \
&& go mod download \
# Patch go-face
&& sed -i 's/-march=native//g' ${GOPATH}/pkg/mod/github.com/!kagami/go-face*/face.go \
&& sed -i 's/-lcblas//g' ${GOPATH}/pkg/mod/github.com/!kagami/go-face*/face.go \
# Build dependencies that use CGO
&& go install \
github.com/mattn/go-sqlite3 \
@@ -92,7 +93,7 @@ RUN set -a && source /env && set +a \
&& go build -v -o photoview .
### Build release image ###
FROM debian:bookworm-slim AS release
FROM debian:trixie-slim AS release
ARG TARGETPLATFORM
# See for details: https://github.com/hadolint/hadolint/wiki/DL4006