Something went wrong. Try again.
A monorepo for writing specs and other serious text on the AT Protocol.
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435# Build the stan web app (which bundles the draft editor), then run# the Node server that indexes, serves XRPC, renders specs, and serves the# built app. Node runs the TypeScript sources directly (type stripping), so# there is no server build step. The build context is the monorepo root.FROM node:24-alpine AS buildWORKDIR /appRUN apk add --no-cache gitCOPY package.json package-lock.json ./COPY stan/package.json stan/COPY draft/package.json draft/RUN npm ciCOPY . .RUN npm run build -w stan
FROM node:24-alpineWORKDIR /appENV NODE_ENV=productionRUN apk add --no-cache gitCOPY package.json package-lock.json ./COPY stan/package.json stan/COPY draft/package.json draft/RUN npm ci --omit=devCOPY --from=build /app/stan/web/dist ./stan/web/distCOPY stan/server ./stan/serverCOPY stan/shared ./stan/sharedCOPY stan/lexicons ./stan/lexicons# Trust store: current Alpine CA bundle, and Node verifying against it instead# of its own bundled roots (sm README, "Trust store").RUN apk add --no-cache --upgrade ca-certificates-bundleENV NODE_OPTIONS=--use-openssl-caUSER nodeENV PORT=3000 HOST=0.0.0.0 STANDARDS_DATA=/dataEXPOSE 3000CMD ["node", "--disable-warning=ExperimentalWarning", "stan/server/main.ts"]