feat: initial commit for MediaGen AI project

This commit is contained in:
David Frassi
2026-08-21 18:26:12 +02:00
commit d8e0d0f4c1
32 changed files with 18723 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
# Stage 1: Build Angular application
FROM node:20-alpine AS build
WORKDIR /app
# Copy package files and install dependencies
COPY package*.json ./
RUN npm install --legacy-peer-deps
# Copy application source code
COPY . .
# Build production bundle
RUN npm run build -- --configuration production
# Stage 2: Serve application with Nginx
FROM nginx:alpine
# Copy custom nginx configuration for SPA routing
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Copy built artifacts from stage 1
COPY --from=build /app/dist/mediagen/browser /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]