mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-09-17 09:16:36 +08:00
build:dockerfile
This commit is contained in:
parent
4d3add220e
commit
7d2fc27c0f
@ -4,9 +4,10 @@ WORKDIR /web
|
|||||||
COPY ./VERSION .
|
COPY ./VERSION .
|
||||||
COPY ./web .
|
COPY ./web .
|
||||||
|
|
||||||
RUN npm install --legacy-peer-deps --prefix /web/default && \
|
# 确保使用 package-lock.json 安装,避免依赖版本漂移
|
||||||
npm install --legacy-peer-deps --prefix /web/berry && \
|
RUN npm ci --prefix /web/default && \
|
||||||
npm install --legacy-peer-deps --prefix /web/air
|
npm ci --prefix /web/berry && \
|
||||||
|
npm ci --prefix /web/air
|
||||||
|
|
||||||
RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat ./VERSION) npm run build --prefix /web/default && \
|
RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat ./VERSION) npm run build --prefix /web/default && \
|
||||||
DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat ./VERSION) npm run build --prefix /web/berry && \
|
DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat ./VERSION) npm run build --prefix /web/berry && \
|
||||||
@ -42,4 +43,4 @@ COPY --from=builder2 /build/one-api /
|
|||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
ENTRYPOINT ["/one-api"]
|
ENTRYPOINT ["/one-api"]
|
||||||
|
Loading…
Reference in New Issue
Block a user