fix: streamline Dockerfile by moving npm and react-scripts installation to the correct position

This commit is contained in:
Laisky.Cai 2025-03-12 10:52:31 +00:00
parent d4d534764c
commit df3335510b

View File

@ -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