docs(spikes): Deno 2.9.7 + TS 7 compatibility spike and ADR-004

Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
rootandClaude Fable 5.1 committed 2026-09-27 18:24:08 +08:00
1 parent fe3613ee8f
commit cf85481d95
147 files changed
+15213

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
# Single container: one `deno compile` binary runs API (+ worker role) and serves the prebuilt SPA.
FROM denoland/deno:2.9.7 AS build
WORKDIR /app
COPY . .
RUN deno install --frozen
RUN cd web && deno task build
# --node-modules-dir=none + --exclude-unused-npm: embed only npm packages reachable from the server graph
RUN deno compile --frozen --node-modules-dir=none --exclude-unused-npm \
--allow-net --allow-env --allow-sys --allow-read=/app \
--output /out/umt-server apps/server/src/http.ts
FROM debian:trixie-slim
RUN useradd -r -u 1000 umt
WORKDIR /app
COPY --from=build /out/umt-server /app/umt-server
COPY --from=build /app/web/build/client /app/public
ENV WEB_ROOT=/app/public HOST=0.0.0.0 PORT=8080
USER umt
EXPOSE 8080
ENTRYPOINT ["/app/umt-server"]