From 104b9836dad60ec28321ae6859a52e4281799809 Mon Sep 17 00:00:00 2001 From: yordanovsstoyan Date: Mon, 24 Jun 2024 13:01:53 +0300 Subject: [PATCH] canvas --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 4b2df7a..db682d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,7 @@ FROM node:16 AS frontend WORKDIR /build COPY ./frontend/package.json ./frontend/package-lock.json /build/ ENV NEXT_TELEMETRY_DISABLED=1 +# We need the libraries ,because of canvas https://github.com/Automattic/node-canvas/issues/1662 RUN apt-get -y update && \ apt-get -y install gcc build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev RUN npm ci