From fa6bca0addd3171116faf377f7acba364ec2aa48 Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Mon, 13 Apr 2026 16:47:05 +0200 Subject: [PATCH] fix: use apk instead of apt-get in Logto Dockerfile The Logto base image (ghcr.io/logto-io/logto:latest) is Alpine-based, not Debian. Switch from apt-get to apk for installing bootstrap deps. Co-Authored-By: Claude Opus 4.6 (1M context) --- ui/sign-in/Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ui/sign-in/Dockerfile b/ui/sign-in/Dockerfile index cda694e..d95aa69 100644 --- a/ui/sign-in/Dockerfile +++ b/ui/sign-in/Dockerfile @@ -12,10 +12,8 @@ RUN npm run build # Stage 2: Logto with sign-in UI + bootstrap FROM ghcr.io/logto-io/logto:latest -# Install bootstrap dependencies (curl, jq for API calls; postgresql-client for DB reads) -RUN apt-get update && apt-get install -y --no-install-recommends \ - curl jq postgresql-client \ - && rm -rf /var/lib/apt/lists/* +# Install bootstrap dependencies (curl, jq for API calls; postgresql16-client for DB reads) +RUN apk add --no-cache curl jq postgresql16-client # Custom sign-in UI COPY --from=build /ui/dist/ /etc/logto/packages/experience/dist/