- 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
24 lines
443 B
Docker
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"]
|