File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ FROM base AS deps
77WORKDIR /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* ./
1111RUN \
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
3232RUN \
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
You can’t perform that action at this time.
0 commit comments