feat: convert docs to pdf logic with api endpoint and dockerfile dependency

This commit is contained in:
theoleuthardt 2025-02-13 01:08:03 +01:00
parent 4f119ca750
commit 40032dca69
6 changed files with 124 additions and 23 deletions

View file

@ -5,7 +5,7 @@ FROM node:18-alpine AS base
# Install dependencies only when needed
FROM base AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat
RUN apk add --no-cache libc6-compat libreoffice ttf-liberation
WORKDIR /app
# Install dependencies based on the preferred package manager
@ -49,7 +49,6 @@ RUN adduser --system --uid 1001 nextjs
COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
COPY --from=builder /app/public ./public
USER nextjs