Expanded solutions (10 new industries) and products (Compliance & Data section) to cover full docs.lux.financial capability surface.
32 lines
601 B
Docker
32 lines
601 B
Docker
# Multi-stage build for LUX Exchange UI
|
|
FROM node:18-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
# Install dependencies
|
|
COPY package.json yarn.lock* ./
|
|
RUN yarn install --frozen-lockfile || yarn install
|
|
|
|
# Copy source and build
|
|
COPY . .
|
|
RUN yarn build
|
|
|
|
# Production stage
|
|
FROM node:18-alpine AS runner
|
|
|
|
WORKDIR /app
|
|
|
|
ENV NODE_ENV=production
|
|
|
|
# Copy built files
|
|
COPY --from=builder /app/build ./build
|
|
COPY --from=builder /app/node_modules ./node_modules
|
|
COPY --from=builder /app/package.json ./
|
|
|
|
# Install serve for static hosting
|
|
RUN npm install -g serve
|
|
|
|
EXPOSE 3000
|
|
|
|
CMD ["serve", "-s", "build", "-l", "3000"]
|