From: MTRNord Date: Wed, 19 Feb 2025 10:06:28 +0000 (+0100) Subject: Ensure the required libraries for node-canvas exist in the Dockerfile X-Git-Url: https://gerrit.midnightthoughts.space/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F01%2F201%2F1;p=neoboard-miro-converter.git Ensure the required libraries for node-canvas exist in the Dockerfile Change-Id: Id56dc49b325b650e413d8106ec7e9bcf6261db45 --- diff --git a/Dockerfile b/Dockerfile index ed117ad..3b8bef9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ FROM base AS deps WORKDIR /app # Most needed by canvas lib -RUN apk add --no-cache libc6-compat patch python3 pkgconfig pixman-dev cairo-dev pango-dev make g++ +RUN apk add --no-cache libc6-compat patch python3 pkgconfig pixman-dev cairo-dev pango-dev make g++ cairo pango # Install dependencies based on the preferred package manager COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* .npmrc* ./ @@ -50,6 +50,9 @@ ENV NEXT_TELEMETRY_DISABLED=1 RUN addgroup --system --gid 1001 nodejs RUN adduser --system --uid 1001 nextjs +# Most needed by canvas lib +RUN apk add --no-cache libc6-compat patch python3 pkgconfig pixman-dev cairo-dev pango-dev make g++ cairo pango + COPY --from=builder /app/public ./public # Automatically leverage output traces to reduce image size