mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
fix: only bun
This commit is contained in:
parent
925aa8d20a
commit
079931c527
10
Dockerfile
10
Dockerfile
@ -19,14 +19,8 @@ RUN if [[ $(uname -m) == "aarch64" ]] ; \
|
||||
rm glibc-2.28-r0.apk ; \
|
||||
fi
|
||||
|
||||
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* bun.lockb* ./
|
||||
RUN \
|
||||
if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
|
||||
elif [ -f package-lock.json ]; then npm ci; \
|
||||
elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i --frozen-lockfile; \
|
||||
elif [ -f bun.lockb ]; then npm install -g bun && bun install; \
|
||||
else echo "Lockfile not found." && exit 1; \
|
||||
fi
|
||||
COPY bun.lockb* ./
|
||||
RUN npm install -g bun && bun install
|
||||
|
||||
|
||||
FROM base AS builder
|
||||
|
Loading…
Reference in New Issue
Block a user