Files
fasto/Dockerfile
Cauê Faleiros 20bdf510fd
All checks were successful
Build and Deploy / build-and-push (push) Successful in 1m54s
feat: implement secure multi-tenancy, RBAC, and premium dark mode
- Enforced tenant isolation and Role-Based Access Control across all API routes

- Implemented secure profile avatar upload using multer and UUIDs

- Redesigned UI with a premium "Onyx & Gold" Charcoal dark mode

- Added Funnel Stage and Origin filters to Dashboard and User Detail pages

- Replaced "Referral" with "Indicação" across the platform and database

- Optimized Dockerfile and local environment setup for reliable deployments

- Fixed frontend syntax errors and improved KPI/Chart visualizations
2026-03-03 17:16:55 -03:00

36 lines
571 B
Docker

# Stage 1: Build Frontend
FROM node:22-alpine AS builder
WORKDIR /app
COPY package.json ./
RUN npm install
COPY . .
RUN npm run build
# Stage 2: Production Runtime
FROM node:22-alpine
WORKDIR /app
ENV NODE_ENV=production
# Copy backend package.json as main package.json
COPY backend/package.json ./package.json
# Install dependencies
RUN npm install --omit=dev
# Copy backend source directly into root
COPY backend/index.js ./index.js
COPY backend/db.js ./db.js
# Copy built frontend
COPY --from=builder /app/dist ./dist
EXPOSE 3001
CMD ["node", "index.js"]