diff --git a/Dockerfile b/Dockerfile index 2f833c2..8a6f1ec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,17 @@ # BASE IMAGE FOR EVERY SERVICE # ################################ FROM --platform=linux/amd64 node:20.11-alpine AS with-pnpm +RUN apk add --no-cache \ +build-base \ +g++ \ +cairo-dev \ +jpeg-dev \ +pango-dev \ +giflib-dev \ +pixman-dev \ +pangomm-dev \ +libjpeg-turbo-dev \ +freetype-dev RUN npm i -g pnpm ################################ @@ -34,17 +45,6 @@ RUN pnpm install --frozen-lockfile ################################ FROM with-deps AS backend -RUN apk add --no-cache \ -build-base \ -g++ \ -cairo-dev \ -jpeg-dev \ -pango-dev \ -giflib-dev \ -pixman-dev \ -pangomm-dev \ -libjpeg-turbo-dev \ -freetype-dev WORKDIR /usr/src/app COPY packages/backend/ ./packages/backend/