From 4579ac56ac010fab39764075189eced77a084e5e Mon Sep 17 00:00:00 2001 From: gigirassy Date: Wed, 15 Jul 2026 00:25:51 +0200 Subject: [PATCH] Update Dockerfile --- Dockerfile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 88f8318..31e8368 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,5 @@ +FROM codeberg.org/gigirassy/thc:latest AS thc + FROM --platform=$BUILDPLATFORM kgrv/golang AS builder ARG TARGETOS ARG TARGETARCH @@ -20,12 +22,18 @@ RUN CGO_ENABLED=0 \ FROM scratch AS runtime +USER 1000:1000 + COPY --from=builder /pinata /pinata +COPY --from=thc /thc /thc COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt ENV GOMEMLIMIT=15MiB \ - GOGC=20 + GOGC=20 \ + THC_PORT=8080 EXPOSE 8080 -ENTRYPOINT ["/pinata"] \ No newline at end of file +ENTRYPOINT ["/pinata"] + +HEALTHCHECK --interval=5s --timeout=5s --start-period=10s --retries=5 CMD ["/thc"] \ No newline at end of file