core/dashboard/Dockerfile
Tiago Yamamoto ebb405c4e4 feat: Update dashboard and identity-gateway infrastructure
- Add Tenants module to Identity Gateway
- Update Dashboard Auth context and components
- Refactor token service and user/role controllers
- Add Quadlet container definitions for dev environment
2025-12-31 17:41:04 -03:00

24 lines
443 B
Docker

# Dockerfile
# Stage 1: Build the React application
FROM node:20-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
# Stage 2: Serve with Distroless Node.js
FROM gcr.io/distroless/nodejs20-debian12
WORKDIR /app
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/server.js ./server.js
COPY --from=builder /app/node_modules ./node_modules
EXPOSE 3000
CMD ["server.js"]