Commit Graph

3 Commits

Author SHA1 Message Date
Kevin Kyburz e8b7ddc9fc fix(docker): install node-gyp toolchain in build stage for blocked prebuilt downloads (#2148)
better-sqlite3 installs via `prebuild-install || node-gyp rebuild`. The
prebuilt binary is fetched from GitHub Releases, which corporate proxies
and offline mirrors commonly block. The fallback then compiles from
source and dies in node:22-slim because no compiler toolchain is
present. Install python3/make/g++ in the deps stage only; the runtime
image starts from a fresh node:22-slim and is unaffected.

Also documents the same failure mode in the Node.js deployment guide and
clarifies that the guide's Dockerfile (single site) and the repo-root
Dockerfile (monorepo) are different scenarios.

Follow-up to #2132 (#2118).
2026-07-20 17:42:17 +01:00
Kevin Kyburz 906461de57 fix(docker): copy patches/ into deps stage so pnpm install succeeds (#2118) (#2132)
pnpm-workspace.yaml declares patchedDependencies pointing at
patches/@sigstore__core@4.0.1.patch, which pnpm reads during
`pnpm install --frozen-lockfile`. The deps stage never copied the
patches/ directory, so the Docker build failed with
ENOENT on the patch file. Copy it alongside the lockfile/workspace
manifests before install.
2026-07-20 10:08:28 +01:00
Joost van Ginkel 4f142d736f Improve Docker deployment docs and add Dockerfile and docker-compose.yml (#196)
* Improve Docker deployment docs

- Update Node.js version from 20 to 22 (matches project requirements)
- Copy seed/ and astro.config.mjs into production image (needed for database initialization)
- Add emdash init to CMD so the database is created on first run
- Add .dockerignore recommendation
- Add docker-compose.yml example

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Add Dockerfile and docker-compose.yml for running from the monorepo

Builds the blog template with Node.js + SQLite using pnpm deploy
for a slim production image (~693MB). Run with docker compose up.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Matt Kane <mkane@cloudflare.com>
2026-04-11 09:48:02 +00:00