mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-09-21 19:16:36 +08:00
fix: streamline Dockerfile by moving npm and react-scripts installation to the correct position
This commit is contained in:
parent
d4d534764c
commit
df3335510b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user