mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-09-22 03:16:38 +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 .
|
# * 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
|
FROM node:22-bullseye AS builder
|
||||||
|
|
||||||
|
RUN npm install -g npm react-scripts
|
||||||
|
|
||||||
WORKDIR /web
|
WORKDIR /web
|
||||||
COPY ./VERSION .
|
COPY ./VERSION .
|
||||||
COPY ./web .
|
COPY ./web .
|
||||||
|
|
||||||
RUN npm install -g npm react-scripts
|
|
||||||
|
|
||||||
# Install dependencies for each project
|
# Install dependencies for each project
|
||||||
# do not build parallel to avoid OOM on github actions
|
# do not build parallel to avoid OOM on github actions
|
||||||
RUN cd /web/default && yarn install
|
RUN cd /web/default && yarn install
|
||||||
|
Loading…
Reference in New Issue
Block a user