Commit Graph
11 Commits
Author SHA1 Message Date
yiling bc1491bed5 feat(transcode): add PDF preview, sprite generation, and annotation support 2026-07-18 10:32:38 +08:00
Yiling-J fa319d0898 Add Dockerfile syntax version specification 2026-07-01 10:50:37 +08:00
yiling a390643458 feat(docker): add root entrypoint with privilege dropping for data volumes
This updates the Dockerfile and adds a scripts/docker-entrypoint.sh script.
Under native Linux (like Debian), when docker-compose mounts a host folder
as a volume (e.g. `./data:/app/data`), and the folder doesn't exist, the
docker daemon creates the folder as root-owned (`root:root`).

Because the container runs as a non-root user `bun`, it gets permission
denied (`EACCES`) when trying to write to the data directory.

To resolve this in a beginner-friendly way without manual host-side
permissions updates:
1. The runner stage now installs `gosu`.
2. At the end of the Dockerfile, the user switches back to `root` so the
   container launches as root.
3. On launch, the entrypoint script executes. Since it runs as root, it
   automatically changes ownership of `/app/data` to `bun:bun`.
4. The entrypoint script then uses `gosu` to drop privileges and launch the
   actual server processes as the non-root `bun` user.
2026-06-23 09:46:56 +08:00
yiling 84aa1662be fix(docker): align build output structure and fix web 404 error 2026-06-12 21:24:59 +08:00
yiling 5facd98b0d feat(docker): pin runtime dependencies using dynamic package.json 2026-06-11 10:10:55 +08:00
yiling 823175d487 refactor(docker): run as non-root bun user and add agent tools 2026-06-06 10:43:19 +08:00
yiling 3da2cdc524 feat(monorepo): introduce apps folder and decouple api package 2026-06-02 15:30:16 +08:00
yiling 35b0081e23 update 2026-06-02 14:57:03 +08:00
yiling 240a5a8702 refactor(monorepo): distribute runtime dependencies to workspace packages 2026-06-02 10:25:40 +08:00
yiling 75f56edc4c chore(docker): add system dependencies for sandbox runtime 2026-05-20 14:37:42 +08:00
yiling 9cad96210c initial commit 2026-05-19 16:05:09 +08:00