Skip to content

Commit 6d5939a

Browse files
committed
fix: add bun.lock as a bun file
Signed-off-by: ItsNeil17 <neil@willofsteel.me>
1 parent 957d84a commit 6d5939a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ RUN apk add --no-cache libc6-compat
88
WORKDIR /app
99

1010
# Install dependencies based on the preferred package manager
11-
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* bun.lockb* .npmrc* source.config.ts next.config.* ./
11+
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* bun.lockb* bun.lock* .npmrc* source.config.ts next.config.* ./
1212
RUN \
13-
if [ -f bun.lockb ]; then \
13+
if [ -f bun.lockb ] || [ -f bun.lock ]; then \
1414
apk add --no-cache curl unzip && \
1515
curl -fsSL https://bun.sh/install | bash && \
1616
/root/.bun/bin/bun install --frozen-lockfile; \
@@ -33,7 +33,7 @@ COPY . .
3333
# ENV NEXT_TELEMETRY_DISABLED=1
3434

3535
RUN \
36-
if [ -f bun.lockb ]; then /root/.bun/bin/bun run build; \
36+
if [ -f bun.lockb ] || [ -f bun.lock ]; then /root/.bun/bin/bun run build; \
3737
elif [ -f yarn.lock ]; then yarn run build; \
3838
elif [ -f package-lock.json ]; then npm run build; \
3939
elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build; \

0 commit comments

Comments
 (0)