From 8e068f1aa5e977dfa466f0e7cdc3664bfce1c04e Mon Sep 17 00:00:00 2001 From: i701 Date: Sat, 11 Jan 2025 01:55:43 +0500 Subject: [PATCH] attempt 4 docker --- .build/prod/bun.Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.build/prod/bun.Dockerfile b/.build/prod/bun.Dockerfile index 7361cd6..9b7cc2f 100644 --- a/.build/prod/bun.Dockerfile +++ b/.build/prod/bun.Dockerfile @@ -29,10 +29,14 @@ COPY . . # Uncomment the following line in case you want to disable telemetry during the build. # ENV NEXT_TELEMETRY_DISABLED=1 +ARG DATABASE_URL +ENV DATABASE_URL=${DATABASE_URL} + RUN \ if [ -f yarn.lock ]; then yarn run build; \ elif [ -f package-lock.json ]; then npm run build; \ elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build; \ + elif [ -f bun.lock ]; then bun run build; \ else echo "Lockfile not found." && exit 1; \ fi