From 30beff3aa0de31287a5e79e7a96e08d09da5f9a6 Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 30 Sep 2024 09:08:34 +0100 Subject: [PATCH] smh --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 98a3fc1..1f1fbe5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,8 @@ WORKDIR /app COPY --from=deps /app/node_modules ./node_modules COPY . . -RUN apk add --no-cache python3 make g++ gcc pkgconfig pixman cairo-dev libjpeg-turbo-dev pango-dev giflib-dev +# Install runtime dependencies +RUN apk add --no-cache cairo pango libjpeg-turbo ENV NEXT_TELEMETRY_DISABLED=1 @@ -28,8 +29,8 @@ RUN pnpm run build FROM base AS runner WORKDIR /app -# Install only runtime dependencies (not -dev packages) for canvas and cairo -RUN apk add --no-cache cairo pango +# Install runtime dependencies +RUN apk add --no-cache cairo pango libjpeg-turbo ENV NODE_ENV=production ENV NEXT_TELEMETRY_DISABLED=1