Move cover bytes to filesystem storage

This commit is contained in:
2026-08-09 23:50:39 +07:00
parent 30c57bd39c
commit 7cddd4a563
15 changed files with 259 additions and 41 deletions
+4 -1
View File
@@ -19,11 +19,14 @@ COPY internal/ ./internal/
# -trimpath + -ldflags strip paths and debug info for a smaller image.
RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/server .
# Create the source directory; runtime COPY sets ownership for the named volume.
RUN mkdir -p /covers
# --- runtime stage: distroless static, non-root ---
FROM gcr.io/distroless/static:nonroot
WORKDIR /
COPY --from=build --chown=65532:65532 /covers /covers
COPY --from=build /out/server /server
EXPOSE 8080
USER nonroot:nonroot
ENV PORT=8080