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