Fix sharp in container, add admin downloads and anchor mark

- ship libvips with the runtime image so POST /api/v1/media stops failing
- admin downloads openapi.json and the style guide via session, no token
- copy rows for both API addresses
- anchor mark in the wordmark and a favicon
This commit is contained in:
Matthias G
2026-08-01 11:31:45 +02:00
parent 7582c64709
commit 58c4cb12a8
12 changed files with 191 additions and 33 deletions
+6
View File
@@ -12,12 +12,18 @@ COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN pnpm build
FROM base AS sharp
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
RUN mkdir -p /out && cp -RL node_modules/.pnpm/@img+* /out/
FROM base AS runner
WORKDIR /app
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/
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