Files
udyamlinc/Dockerfile
T
LincPayandClaude Opus 5 f430f85202 chore: initial commit — UdyamLinc UI, phases A-E
Vite/React 19 console and enterprise PWA. Officer console screens, offline
ledger and sync, data feeds and trip-wire rules screens with freshness chip.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-06 13:30:24 +05:30

16 lines
507 B
Docker

# ── build stage: compile the Vite bundle inside Docker ──
FROM node:22-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
# VITE_UDYAM_API_BASE_URL is unset here, so the compiled-in default
# (http://udyamlinc-backend.lincpay/api/v1/udyam) is baked into the bundle.
RUN npm run build
# ── serve stage: nginx serving the static SPA on 5173 ──
FROM nginx:alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 5173