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

View File

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