Skip to content

Commit 97ceaac

Browse files
authored
fix: dockerfile (#73)
1 parent c86791b commit 97ceaac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ FROM base AS deps
77
WORKDIR /app
88

99
# Install dependencies based on the preferred package manager
10-
COPY package.json package-lock.json* pnpm-lock.yaml* .npmrc* bun.lockb ./
10+
COPY package.json package-lock.json* pnpm-lock.yaml* .npmrc* bun.lock* ./
1111
RUN \
1212
if [ -f package-lock.json ]; then npm ci; \
1313
elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm i --frozen-lockfile; \
14-
elif [ -f bun.lockb ]; then bun install --no-save; \
14+
elif [ -f bun.lockb ] || [ -f bun.lock ]; then bun install --no-save; \
1515
else echo "Lockfile not found." && exit 1; \
1616
fi
1717

@@ -32,7 +32,7 @@ ENV NEXT_TELEMETRY_DISABLED=1
3232
RUN \
3333
if [ -f package-lock.json ]; then npm run build; \
3434
elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build; \
35-
elif [ -f bun.lockb ]; then bun run build; \
35+
elif [ -f bun.lockb ] || [ -f bun.lock ]; then bun run build; \
3636
else echo "Lockfile not found." && exit 1; \
3737
fi
3838

0 commit comments

Comments
 (0)