Repository navigation
fix: Docker 生产改回 Node 运行 srvx(v0.1.8) - #10
Merged
Merged
Conversation
v0.1.7 runner 用 oven/bun,srvx 的 shebang 落到 bun 的 node shim, Node 适配器给只读 Request 写 waitUntil,每次请求 TypeError。 install/build 仍用 bun;容器进程用 node:22 直接跑 srvx。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
v0.1.7 镜像把 runner 换成
oven/bun:1,entrypoint 仍然跑./node_modules/.bin/srvx(shebang#!/usr/bin/env node)。Bun 镜像没有真 Node,env node落到 bun 的 node shim,srvx 的 Node 适配器会给Request写waitUntil,而 Bun 的 Request 只读 → 每次请求TypeError。修法
node:22-bookworm-slimnode跑 migrate / ensure-init /srvx/bin/srvx.mjs,不走 shebangscripts/docker-runtime.test.mjs,防止 runner 再被改回 bun升级:
FOLIO_VERSION=v0.1.8 docker compose pull folio && docker compose up -d或
./scripts/update-from-release.sh(tag 打出后)。