mirror of
https://github.com/hanzoai/id.git
synced 2026-10-16 18:38:15 +00:00
fix(docker): static needs -root/-spa flags, not ROOT/PORT env (#11)
hanzoai/static:0.4.1 reads the serve root from the -root flag (default /public) and port from -port (default 3000) — the ENV ROOT=/spa PORT=8080 were no-ops, so the built image served /public (crash) on :8080 while the deploy probes :3000. Set ENTRYPOINT [/static -root /spa -spa] (default port 3000). Matches the hand-built id:0.1.5 now live. Co-authored-by: Antje Worring <[email protected]>
This commit is contained in:
committed by
GitHub
co-authored by
Antje Worring
parent
d84124e099
commit
09a60d471a
+4
-2
@@ -19,5 +19,7 @@ RUN pnpm --filter @hanzo/id-web build
|
||||
# Static server stage — hanzoai/static reads /spa for assets
|
||||
FROM ghcr.io/hanzoai/static:0.4.1
|
||||
COPY --from=build /build/apps/web/dist /spa
|
||||
EXPOSE 8080
|
||||
ENV PORT=8080 ROOT=/spa
|
||||
EXPOSE 3000
|
||||
# hanzoai/static reads -root/-spa as FLAGS (ROOT/PORT env are ignored);
|
||||
# default port 3000 matches the id deploy probe.
|
||||
ENTRYPOINT ["/static", "-root", "/spa", "-spa"]
|
||||
|
||||
Reference in New Issue
Block a user