From a476d237ffb5a12970a30638dc3d8726d561e977 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 22 Feb 2025 18:25:51 -0500 Subject: [PATCH] Install build tools --- Dockerfile.base | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile.base b/Dockerfile.base index 13378f1caa..f15abf2cca 100644 --- a/Dockerfile.base +++ b/Dockerfile.base @@ -1,12 +1,17 @@ ARG APP_PATH=/opt/outline FROM node:20-slim AS deps +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + build-essential \ + python3 + ARG APP_PATH WORKDIR $APP_PATH COPY ./package.json ./yarn.lock ./ COPY ./patches ./patches -RUN yarn install --no-optional --frozen-lockfile --network-timeout 1000000 && \ +RUN yarn install --no-optional --frozen-lockfile && \ yarn cache clean COPY . . @@ -15,7 +20,7 @@ RUN yarn build RUN rm -rf node_modules -RUN yarn install --production=true --frozen-lockfile --network-timeout 1000000 && \ +RUN yarn install --production=true --frozen-lockfile && \ yarn cache clean ENV PORT=3000