Files
xenia-pos-local/terminal/Dockerfile
T
bonaminandClaude Opus 5.5 314e9c2457 refactor: @xenia/signage: the slides and the player's logic shared by the terminal and the manager (platform-v2 step 5.6a)
The signage slides (SlideView, TextSlide, MenuSlide, Widgets) and the pure
logic (schedule pick, slide windows, menu pages) move from the terminal into
packages/signage, so the manager's previews draw a slide exactly as the TV
does. Sizes are container units (cqmin) instead of viewport units: a slide
draws inside any box with container-type: size (frameStyle sets it on the
TV). Tests move with it (10). Dockerfiles copy its package.json; both apps'
Tailwind content include it; run-all runs its tests. Signage e2e and the
compose stack passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 20:59:33 +02:00

34 lines
1.0 KiB
Docker

# Build context: client-services/ (the npm workspace root, APPS_PLATFORM D-15)
# docker build -f terminal/Dockerfile .
FROM node:22-slim AS builder
WORKDIR /app
# Manifests first so the install layer is cached until a dependency changes.
# The lockfile covers every workspace, so all their package.json files are needed.
COPY package.json package-lock.json ./
COPY packages/ui/package.json packages/ui/
COPY packages/i18n/package.json packages/i18n/
COPY packages/api/package.json packages/api/
COPY packages/access/package.json packages/access/
COPY packages/signage/package.json packages/signage/
COPY waiter_pwa/package.json waiter_pwa/
COPY manager_dashboard/package.json manager_dashboard/
COPY terminal/package.json terminal/
RUN npm ci --workspace terminal --include-workspace-root
COPY packages/ packages/
COPY terminal/ terminal/
WORKDIR /app/terminal
RUN npm run build
FROM nginx:alpine
COPY --from=builder /app/terminal/dist /usr/share/nginx/html
COPY terminal/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]