From 570f59d2d94fb444d89731b9469777dd7089f8ae Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Thu, 6 Nov 2025 12:01:11 +0100 Subject: [PATCH] Update Dockerfile --- t3-app/Dockerfile | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/t3-app/Dockerfile b/t3-app/Dockerfile index 1faeb28..4ebc43a 100644 --- a/t3-app/Dockerfile +++ b/t3-app/Dockerfile @@ -10,15 +10,9 @@ COPY prisma ./ # Install dependencies based on the preferred package manager -COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml\* ./ +COPY package.json bun.lock -RUN \ - if [ -f yarn.lock ]; then yarn --frozen-lockfile; \ - elif [ -f package-lock.json ]; then npm ci; \ - elif [ -f pnpm-lock.yaml ]; then npm install -g pnpm && pnpm i; \ - elif [ -f bun.lock ]; then bun i; \ - else echo "Lockfile not found." && exit 1; \ - fi +RUN bun i ##### BUILDER @@ -31,13 +25,7 @@ COPY . . # ENV NEXT_TELEMETRY_DISABLED 1 -RUN \ - if [ -f yarn.lock ]; then SKIP_ENV_VALIDATION=1 yarn build; \ - elif [ -f package-lock.json ]; then SKIP_ENV_VALIDATION=1 npm run build; \ - elif [ -f pnpm-lock.yaml ]; then npm install -g pnpm && SKIP_ENV_VALIDATION=1 pnpm run build; \ - elif [ -f bun.lock]; then bunx prisma generate && bun run build; \ - else echo "Lockfile not found." && exit 1; \ - fi +RUN bunx prisma generate && bun run build ##### RUNNER