The procedural-glyph-engine dep pointed at a non-portable file:/private/tmp/orby-pkg
path, breaking npm ci in Docker and every main deploy since v0.20.0 (the build
cache masked it until it busted ~Aug 5). Vendor Orby v5.0.0 into web/vendor/,
switch the dep to file:../vendor, and use npm install in the web Dockerfile
(file: deps need install, not ci). Cherry-picked from 3cd4cf9.
21 lines
682 B
Docker
21 lines
682 B
Docker
# Dockerfile for the oikos control-room SPA. Built separately from the
|
|
# oikos binary (compose/oikos/Dockerfile) — see docker-compose.yml's `web`
|
|
# service. The outer production Caddy (caddy-conf repo, LXC 121) handles
|
|
# Authentik + splits /api/*, /mcp, /agent/* off to the api service; this
|
|
# container only serves static files with SPA-fallback routing.
|
|
|
|
FROM node:22-alpine AS builder
|
|
|
|
WORKDIR /build/web
|
|
COPY web/package.json web/package-lock.json ./
|
|
COPY web/vendor /build/vendor
|
|
RUN npm install --no-audit --no-fund
|
|
COPY VERSION ./
|
|
COPY web/ ./
|
|
RUN npm run build
|
|
|
|
FROM caddy:2-alpine
|
|
|
|
COPY --from=builder /build/web/dist /srv
|
|
COPY compose/web/Caddyfile /etc/caddy/Caddyfile
|