mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-17 23:12:23 +00:00
feat(dockerfile): support bun.lockb file
This commit is contained in:
parent
4e1a185036
commit
f4ce0e594d
@ -16,7 +16,7 @@ RUN \
|
||||
if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
|
||||
elif [ -f package-lock.json ]; then npm ci; \
|
||||
elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm i --frozen-lockfile; \
|
||||
elif [ -f bun.lock ]; then \
|
||||
elif [ -f bun.lock ] || [ -f bun.lockb ]; then \
|
||||
apk add --no-cache curl bash && \
|
||||
curl -fsSL https://bun.sh/install | bash && \
|
||||
export BUN_INSTALL="$HOME/.bun" && \
|
||||
@ -25,7 +25,6 @@ RUN \
|
||||
else echo "Lockfile not found." && exit 1; \
|
||||
fi
|
||||
|
||||
|
||||
# Rebuild the source code only when needed
|
||||
FROM base AS builder
|
||||
WORKDIR /app
|
||||
@ -41,7 +40,7 @@ RUN \
|
||||
if [ -f yarn.lock ]; then yarn run build; \
|
||||
elif [ -f package-lock.json ]; then npm run build; \
|
||||
elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build; \
|
||||
elif [ -f bun.lock ]; then \
|
||||
elif [ -f bun.lock ] || [ -f bun.lockb ]; then \
|
||||
apk add --no-cache curl bash && \
|
||||
curl -fsSL https://bun.sh/install | bash && \
|
||||
export BUN_INSTALL="$HOME/.bun" && \
|
||||
|
Loading…
Reference in New Issue
Block a user