File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ RUN apk add --no-cache libc6-compat
88WORKDIR /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.* ./
1212RUN \
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
3535RUN \
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; \
You can’t perform that action at this time.
0 commit comments