From df3335510b769570c86780093a9363d2add27f80 Mon Sep 17 00:00:00 2001 From: "Laisky.Cai" Date: Wed, 12 Mar 2025 10:52:31 +0000 Subject: [PATCH] fix: streamline Dockerfile by moving npm and react-scripts installation to the correct position --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index afa13935..523181fc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,12 +2,12 @@ # * for arm64: DOCKER_BUILDKIT=1 docker build --platform linux/arm64 --build-arg TARGETARCH=arm64 -t ppcelery/one-api:arm64-latest . FROM node:22-bullseye AS builder +RUN npm install -g npm react-scripts + WORKDIR /web COPY ./VERSION . COPY ./web . -RUN npm install -g npm react-scripts - # Install dependencies for each project # do not build parallel to avoid OOM on github actions RUN cd /web/default && yarn install