1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-12 03:28:58 +00:00

feat: distroless container additional variant + healthcheck command (#716)

This commit is contained in:
Alessandro (Ale) Segala
2025-07-04 12:26:01 -07:00
committed by GitHub
parent 81315790a8
commit 1a41b05f60
9 changed files with 157 additions and 19 deletions

18
Dockerfile-distroless Normal file
View File

@@ -0,0 +1,18 @@
# This Dockerfile embeds a pre-built binary for the given Linux architecture
# Binaries must be built using "./scripts/development/build-binaries.sh --docker-only"
FROM gcr.io/distroless/static-debian12:nonroot
# TARGETARCH can be "amd64" or "arm64"
ARG TARGETARCH
WORKDIR /app
COPY ./backend/.bin/pocket-id-linux-${TARGETARCH} /app/pocket-id
EXPOSE 1411
ENV APP_ENV=production
HEALTHCHECK --interval=90s --timeout=5s --start-period=10s --retries=3 CMD [ "/app/pocket-id", "healthcheck" ]
CMD ["/app/pocket-id"]