Fix container build for sharp, slug lookup and select fields

- build the runtime image so libvips lands next to the sharp binary
- GET /api/v1/posts/:slug finds drafts by slug for write clients
- media upload documented with project slug instead of a project id
- own select control instead of the browser default
- quieter sidebar footer, project name leads to its entries
This commit is contained in:
Matthias G
2026-08-01 11:48:48 +02:00
parent 58c4cb12a8
commit 7a594eeacf
19 changed files with 119 additions and 72 deletions
+5 -1
View File
@@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
FROM node:24-alpine AS base
RUN corepack enable && corepack prepare pnpm@latest --activate
@@ -23,7 +24,10 @@ ENV NODE_ENV=production
RUN addgroup --system --gid 1001 nodejs && adduser --system --uid 1001 nextjs
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=sharp --chown=nextjs:nodejs /out ./node_modules/.pnpm/
RUN --mount=from=sharp,source=/out,target=/tmp/img \
rm -rf node_modules/.pnpm/@img+* \
&& cp -R /tmp/img/. node_modules/.pnpm/ \
&& chown -R nextjs:nodejs node_modules/.pnpm
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
COPY --from=builder --chown=nextjs:nodejs /app/drizzle ./drizzle
COPY --from=builder --chown=nextjs:nodejs /app/docs/style-guide.md ./docs/style-guide.md