Browse Source

Docker: update to debian 13

also update nfpm to 2.43.4

Signed-off-by: Nicola Murino <[email protected]>
Nicola Murino 1 week ago
parent
commit
c4bc88cd2e
3 changed files with 5 additions and 5 deletions
  1. 2 2
      Dockerfile
  2. 2 2
      Dockerfile.distroless
  3. 1 1
      pkgs/build.sh

+ 2 - 2
Dockerfile

@@ -1,4 +1,4 @@
-FROM golang:1.25-bookworm AS builder
+FROM golang:1.25-trixie AS builder
 
 ENV GOFLAGS="-mod=readonly"
 
@@ -30,7 +30,7 @@ ARG DOWNLOAD_PLUGINS=false
 
 RUN if [ "${DOWNLOAD_PLUGINS}" = "true" ]; then apt-get update && apt-get install --no-install-recommends -y curl && ./docker/scripts/download-plugins.sh; fi
 
-FROM debian:bookworm-slim
+FROM debian:trixie-slim
 
 # Set to "true" to install jq and the optional git and rsync dependencies
 ARG INSTALL_OPTIONAL_PACKAGES=false

+ 2 - 2
Dockerfile.distroless

@@ -1,4 +1,4 @@
-FROM golang:1.25-bookworm AS builder
+FROM golang:1.25-trixie AS builder
 
 ENV CGO_ENABLED=0 GOFLAGS="-mod=readonly"
 
@@ -32,7 +32,7 @@ RUN sed -i 's|"users_base_dir": "",|"users_base_dir": "/srv/sftpgo/data",|' sftp
 
 RUN mkdir /etc/sftpgo /var/lib/sftpgo /srv/sftpgo
 
-FROM gcr.io/distroless/static-debian12
+FROM gcr.io/distroless/static-debian13
 
 COPY --from=builder --chown=1000:1000 /etc/sftpgo /etc/sftpgo
 COPY --from=builder --chown=1000:1000 /srv/sftpgo /srv/sftpgo

+ 1 - 1
pkgs/build.sh

@@ -1,6 +1,6 @@
 #!/bin/bash
 
-NFPM_VERSION=2.43.3
+NFPM_VERSION=2.43.4
 NFPM_ARCH=${NFPM_ARCH:-amd64}
 if [ -z ${SFTPGO_VERSION} ]
 then