af220b79069a03f4d6d84da007c37fbdf5fef778

Author
TheEdgeOfRage <git@theedgeofrage.com>
Committer
TheEdgeOfRage <git@theedgeofrage.com>
Date

Message

Pin debian image hash

Diff

 1diff --git a/Dockerfile b/Dockerfile
 2index 676ba6f6a86234b7b1cb579d094c04acb8384cfc..687636a4ef337c885d982b3b4fbafae30f73cd1e 100644
 3--- a/Dockerfile
 4+++ b/Dockerfile
 5@@ -1,4 +1,4 @@
 6-FROM golang:1.25-trixie AS builder
 7+FROM golang:1.25-trixie@sha256:84ad9c55a9914b5861e04c6391151c2bb8931f4115acc9ab7658b01cc85e2854 AS builder
 8 
 9 WORKDIR /app/
10 ENV GOCACHE="/cache"
11@@ -10,7 +10,7 @@ RUN --mount=type=cache,target="/cache" go mod download;
12 COPY . /app/
13 RUN --mount=type=cache,target="/cache" go build -o dist/ytrssil-api cmd/main.go;
14 
15-FROM debian:trixie-slim AS api
16+FROM debian:trixie-slim@sha256:26f98ccd92fd0a44d6928ce8ff8f4921b4d2f535bfa07555ee5d18f61429cf0c AS api
17 
18 HEALTHCHECK --start-period=2s --start-interval=2s CMD exec curl -sf localhost:$PORT/healthz;
19 WORKDIR /app/