Install build tools

This commit is contained in:
Tom Moor committed 2025-02-22 18:25:51 -05:00
1 parent 73685f3877
commit a476d237ff
1 file changed
+7 -2
+7 -2
View File
@@ -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