From 599fa60345f85a4a43bf1ff0b38b73de3adac0c5 Mon Sep 17 00:00:00 2001 From: Arjun Komath Date: Sat, 8 Aug 2026 09:12:02 +1000 Subject: [PATCH] Update cron --- .gitignore | 2 ++ cron.Dockerfile | 49 ------------------------------------------------- proxy.ts | 1 + 3 files changed, 3 insertions(+), 49 deletions(-) delete mode 100644 cron.Dockerfile diff --git a/.gitignore b/.gitignore index d078e6f..d278414 100644 --- a/.gitignore +++ b/.gitignore @@ -41,3 +41,5 @@ sqlite # blob blob-data + +.techulus diff --git a/cron.Dockerfile b/cron.Dockerfile deleted file mode 100644 index e857a12..0000000 --- a/cron.Dockerfile +++ /dev/null @@ -1,49 +0,0 @@ -FROM oven/bun:slim AS base - -ARG NEXT_PUBLIC_APP_URL - -RUN apt-get update && apt-get install -y adduser curl - -# Stage 1: Install dependencies -FROM base AS deps -WORKDIR /app -COPY package.json bun.lock ./ -RUN bun install - -# Stage 2: Build the application -FROM base AS builder -WORKDIR /app -COPY --from=deps /app/node_modules ./node_modules -COPY . . -RUN bun run build - -# Stage 3: Production server -FROM base AS runner -WORKDIR /app - -ENV NODE_ENV=production -ENV NEXT_TELEMETRY_DISABLED=1 - -RUN addgroup --system --gid 1001 nodejs -RUN adduser --system --uid 1001 nextjs - -RUN BUN_INSTALL=/usr/local bun install --global vercel-cron-runner - -COPY --from=builder --chown=nextjs:nodejs /app/public ./public -COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ -COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static -COPY --from=builder --chown=nextjs:nodejs /app/vercel.json ./vercel.json -COPY --from=builder --chown=nextjs:nodejs /app/entrypoint.sh ./entrypoint.sh - -RUN chmod +x /app/entrypoint.sh - -USER nextjs -EXPOSE 3000 -ENV PORT=3000 - -# server.js is created by next build from the standalone output -# https://nextjs.org/docs/pages/api-reference/config/next-config-js/output -ENV HOSTNAME="0.0.0.0" - -ENTRYPOINT ["/app/entrypoint.sh"] -CMD ["sh", "-c", "bun server.js & bun /usr/local/bin/vercel-cron-runner"] diff --git a/proxy.ts b/proxy.ts index 793edcd..b5fc9e6 100644 --- a/proxy.ts +++ b/proxy.ts @@ -10,6 +10,7 @@ const publicRoutes = [ "/api/webhook", "/api/jobs", "/api/calendar", + "/api/cron", "/callback", ];