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( 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 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 (