Skip to content

Commit 36ed9b7

Browse files
aikido-autofix[bot]toindev
authored andcommitted
fix(security): container autofix for gotenberg-fulll
1 parent 2ebcde9 commit 36ed9b7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

build/Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ RUN go build -o gotenberg -ldflags "-s -w -X 'github.com/gotenberg/gotenberg/v8/
5656
# Custom JRE stage
5757
# Credits: https://github.com/jodconverter/docker-image-jodconverter-runtime
5858
# ----------------------------------------------
59-
FROM debian:13-slim AS custom-jre-stage
59+
FROM debian:13-slim@sha256:1d3c811171a08a5adaa4a163fbafd96b61b87aa871bbc7aa15431ac275d3d430 AS custom-jre-stage
60+
61+
# Setting DOCKERFILE_DATE forces a build cache refresh for the package upgrades
62+
ENV DOCKERFILE_DATE=2026-02-26
6063

6164
RUN \
6265
apt-get update -qq &&\
@@ -78,7 +81,7 @@ RUN jlink \
7881
# ----------------------------------------------
7982
# Base image stage
8083
# ----------------------------------------------
81-
FROM debian:13-slim AS base-image-stage
84+
FROM debian:13-slim@sha256:1d3c811171a08a5adaa4a163fbafd96b61b87aa871bbc7aa15431ac275d3d430 AS base-image-stage
8285

8386
ARG TIMEZONE=UTC
8487
ENV TZ=$TIMEZONE
@@ -108,6 +111,9 @@ LABEL org.opencontainers.image.title="Gotenberg" \
108111
org.opencontainers.image.documentation="https://gotenberg.dev" \
109112
org.opencontainers.image.source="https://github.com/gotenberg/gotenberg"
110113

114+
# Setting DOCKERFILE_DATE forces a build cache refresh for the package upgrades
115+
ENV DOCKERFILE_DATE=2026-02-26
116+
111117
RUN \
112118
# Create a non-root user.
113119
# All processes in the Docker container will run with this dedicated user.

0 commit comments

Comments
 (0)