From 2deeaaf97ee51a2c2794db4214aed75ceff2b84b Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sat, 6 Dec 2025 01:28:03 +0100 Subject: [PATCH 1/3] Enable docker cross compile for front & auth --- auth/Dockerfile | 4 ++-- front/Dockerfile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/auth/Dockerfile b/auth/Dockerfile index 5da5144a..fe4c6fb3 100644 --- a/auth/Dockerfile +++ b/auth/Dockerfile @@ -1,11 +1,11 @@ -FROM golang:1.25 AS build +FROM --platform=$BUILDPLATFORM golang:1.25 AS build WORKDIR /app COPY go.mod go.sum ./ RUN go mod download COPY . . -RUN CGO_ENABLED=0 GOOS=linux go build -o /keibi +RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=$TARGETARCH go build -o /keibi FROM gcr.io/distroless/base-debian11 WORKDIR /app diff --git a/front/Dockerfile b/front/Dockerfile index e0d53f86..1f0910a7 100644 --- a/front/Dockerfile +++ b/front/Dockerfile @@ -1,4 +1,4 @@ -FROM oven/bun AS builder +FROM --platform=$BUILDPLATFORM oven/bun AS builder WORKDIR /app # https://github.com/oven-sh/bun/issues/24538 From 0f6285412845096ccf1aa1d2ffcbf87b299319d6 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sat, 6 Dec 2025 01:48:27 +0100 Subject: [PATCH 2/3] Fix images recycling keys --- front/src/primitives/image-background.tsx | 4 +++- front/src/primitives/image.tsx | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/front/src/primitives/image-background.tsx b/front/src/primitives/image-background.tsx index 2625af97..7640fc4d 100644 --- a/front/src/primitives/image-background.tsx +++ b/front/src/primitives/image-background.tsx @@ -28,10 +28,12 @@ export const ImageBackground = ({ const { css, theme } = useYoshiki(); const { apiUrl, authToken } = useToken(); + const uri = src ? `${apiUrl}${src[quality ?? "high"]}` : null; return ( Date: Sat, 6 Dec 2025 01:48:34 +0100 Subject: [PATCH 3/3] Run multiple image download queue in parallel --- api/src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/src/index.ts b/api/src/index.ts index e8288af0..5e021e65 100644 --- a/api/src/index.ts +++ b/api/src/index.ts @@ -8,7 +8,9 @@ import { comment } from "./utils"; await migrate(); // run image processor task in background -processImages(); +for (let i = 0; i < 10; i++) { + processImages(); +} const app = new Elysia() .use(