编辑文件 cache.dockerfile
This commit is contained in:
parent
5a427d1723
commit
21ade761d1
@ -1,8 +1,8 @@
|
|||||||
FROM node:22-slim AS builder
|
FROM node:22-slim AS builder
|
||||||
|
|
||||||
# --max-old-space-size
|
# --max-old-space-size
|
||||||
ENV PNPM_HOME="/pnpm"
|
|
||||||
ENV PATH="$PNPM_HOME:$PATH"
|
|
||||||
ENV NODE_OPTIONS=--max-old-space-size=8192
|
ENV NODE_OPTIONS=--max-old-space-size=8192
|
||||||
ENV TZ=Asia/Shanghai
|
ENV TZ=Asia/Shanghai
|
||||||
|
|
||||||
@ -17,8 +17,6 @@ COPY . /app
|
|||||||
|
|
||||||
RUN npm config set registry https://mirrors.cloud.tencent.com/npm/
|
RUN npm config set registry https://mirrors.cloud.tencent.com/npm/
|
||||||
RUN npm install -g pnpm@10.14.0
|
RUN npm install -g pnpm@10.14.0
|
||||||
RUN pnpm config set registry https://mirrors.cloud.tencent.com/npm/
|
|
||||||
|
|
||||||
RUN pnpm install --frozen-lockfile
|
RUN pnpm install --frozen-lockfile
|
||||||
|
|
||||||
RUN echo "Builder Success 🎉"
|
RUN echo "Builder Success 🎉"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user