Fix container build

This commit is contained in:
Eric Gullickson
2025-08-23 10:47:58 -05:00
parent ac97d03c78
commit a5270c33a8
2 changed files with 11 additions and 16 deletions

View File

@@ -1,18 +1,14 @@
/**
* @ai-summary Public API for maintenance feature capsule
* @ai-note This is the ONLY file other features should import from
* @ai-status Scaffolded - implementation pending
*/
// Export service for use by other features
export { UmaintenanceService } from './domain/lUmaintenance.service';
// TODO: Implement maintenance service and types
// Currently scaffolded feature - no exports until implementation is complete
// Export types needed by other features
export type {
Umaintenance,
CreateUmaintenanceRequest,
UpdateUmaintenanceRequest,
UmaintenanceResponse
} from './domain/lUmaintenance.types';
// Internal: Register routes with Express app
export { registerUmaintenanceRoutes } from './api/lUmaintenance.routes';
// Placeholder to prevent build errors
export const MaintenanceFeature = {
status: 'scaffolded',
message: 'Maintenance feature not yet implemented'
} as const;

View File

@@ -1,5 +1,5 @@
# Production Dockerfile for MotoVaultPro Frontend
FROM node:20-alpine as build
FROM node:20-alpine AS build
# Set working directory
WORKDIR /app
@@ -25,9 +25,8 @@ COPY --from=build /app/dist /usr/share/nginx/html
# Copy nginx configuration
COPY nginx.conf /etc/nginx/nginx.conf
# Create non-root user for nginx
RUN addgroup -g 1001 -S nginx && \
adduser -S frontend -u 1001 -G nginx
# Create non-root user for nginx (nginx group already exists)
RUN adduser -S frontend -u 1001 -G nginx
# Change ownership of nginx directories
RUN chown -R frontend:nginx /var/cache/nginx && \