From 7cf358181e57431d4d124898af03b3c9bdd3b456 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20D=C3=ADaz?= Date: Thu, 11 Jan 2024 19:45:33 +0100 Subject: [PATCH] fix: Dockerfile dependencies for the npm canvas package (#71) * fix: npm canvas build dependency * fix: Add missing dependencies --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a225142..a31f1a8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ WORKDIR /app # some packages require a build step RUN apk update -RUN apk add --no-cache py3-setuptools python3-dev build-base +RUN apk add --no-cache py3-setuptools python3-dev build-base g++ make py3-pip libpng-dev jpeg-dev pango-dev cairo-dev giflib-dev # install dependencies COPY package.json /app/package.json @@ -26,7 +26,7 @@ RUN npm install --only=production --ignore-scripts FROM node:18-alpine RUN apk update -RUN apk add --no-cache tini +RUN apk add --no-cache tini libpng jpeg cairo pango giflib # NODE_ENV is used to configure some runtime options, like JSON logger ENV NODE_ENV production