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) <noreply@anthropic.com>
This commit is contained in:
@@ -12,10 +12,8 @@ RUN npm run build
|
|||||||
# Stage 2: Logto with sign-in UI + bootstrap
|
# Stage 2: Logto with sign-in UI + bootstrap
|
||||||
FROM ghcr.io/logto-io/logto:latest
|
FROM ghcr.io/logto-io/logto:latest
|
||||||
|
|
||||||
# Install bootstrap dependencies (curl, jq for API calls; postgresql-client for DB reads)
|
# Install bootstrap dependencies (curl, jq for API calls; postgresql16-client for DB reads)
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apk add --no-cache curl jq postgresql16-client
|
||||||
curl jq postgresql-client \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
# Custom sign-in UI
|
# Custom sign-in UI
|
||||||
COPY --from=build /ui/dist/ /etc/logto/packages/experience/dist/
|
COPY --from=build /ui/dist/ /etc/logto/packages/experience/dist/
|
||||||
|
|||||||
Reference in New Issue
Block a user