# The scheduled panoptiblog job. # # Built from this directory, so the image carries the indexer and its S3 # upload dependency and nothing from the extension. The task definition # supplies PANOPTIBLOG_BUCKET and PANOPTIBLOG_KEY; the AWS SDK reads the task # role's credentials from the standard chain. FROM node:24-alpine # The social card renderer draws text with resvg; DejaVu is the font family # its composition names. RUN apk add --no-cache font-dejavu WORKDIR /app COPY package.json package-lock.json ./ RUN npm ci --omit=dev COPY . . USER node # --incremental: the record set lives in S3; a normal day reads Jetstream and # only the repositories it names. The first run after a deploy walks everything # and seeds the set. --no-cache: the container is fresh on every run, so the # DID cache has nowhere to persist. --previous reads the last public dataset so # the new one can carry each publication's prior rank. --trending-days reads the # dated history files and publishes the biggest jumps in the top 100. CMD ["node", "index.mjs", "--incremental", "--concurrency", "64", "--top", "100", "--compact", "--no-cache", "--previous", "https://substandard.blog/panoptiblog/all.json", "--trending-days", "5", "--out", "/tmp/panoptiblog.json", "--upload", "--all-out", "/tmp/panoptiblog-all.json", "--all-upload", "--lookup-out", "/tmp/panoptiblog-lookup.json", "--lookup-upload"]