chore: redesign Dockerfile and CI workflow from athena-archive #28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "chore/redesign-dockerfile-ci"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Reworks the
Dockerfileand.forgejo/workflows/ci.ymlon the athena-archive templates.Dockerfile
basestage carriesWORKDIR,NEXT_TELEMETRY_DISABLED, andCOREPACK_ENABLE_DOWNLOAD_PROMPTtiniandlibc6-compat— Next.js handlesSIGTERMdirectly (docker stopreturns in ~0.1s),wgetis already in BusyBoxCOPY . .in the builder (relies on.dockerignore); no build args (no runtime env config)CMD ["node", "server.js"]runs directly, noENTRYPOINTci.yml
push: [main]trigger so cache entries are written under main's ref — PR-branch caches die on squash-merge, leaving PR builds coldpaths-ignore(.forgejo/issue_template/**, pull-request template)sha-76bc1b1package.json
packageManagertopnpm@10.33.4. The athena Dockerfile template'scorepack enable pnpmis reproducible only because athena pins this; without it corepack pulls its latest pnpm, which now rejects <24h-old transitive deps. The pin also matches the CI image's pnpm.Test plan
pnpm run lint/format:check/buildpass locallypnpm install --frozen-lockfilepasses inside theathena-archive-ci:sha-76bc1b1imagedocker buildsucceeds; image servesHTTP 200, healthcheck exits 0, gracefulSIGTERMshutdown