Phase 16: CI dependency audit & security checks #15
@@ -39,6 +39,10 @@ COPY apps/pwa/package.json ./apps/pwa/
|
||||
RUN pnpm install --frozen-lockfile --prod --filter @familysync/api...
|
||||
COPY --from=builder /app/apps/api/dist ./apps/api/dist
|
||||
WORKDIR /app/apps/api
|
||||
# Enforce production identity — engages the NODE_ENV=production hard guard
|
||||
# in devBypass.ts, preventing dev-bypass activation even if DEV_AUTH_BYPASS
|
||||
# is accidentally set in the container environment. (D-07)
|
||||
ENV NODE_ENV=production
|
||||
# PWA static assets built from apps/pwa and served by this API from ./public
|
||||
# (single-port deployment for the Pangolin/newt tunnel). serveStatic resolves
|
||||
# ./public relative to the runtime CWD, which is this WORKDIR (/app/apps/api).
|
||||
|
||||
Reference in New Issue
Block a user