Force l'environnemnt au BUILD

This commit is contained in:
2026-01-21 09:30:40 +01:00
parent 7cfe8b5f69
commit 0c3dc9c9d5
3 changed files with 182 additions and 189 deletions

View File

@@ -28,6 +28,7 @@ RUN rm -rf /usr/share/nginx/html/*
# Copy frontend dist folder to nginx html directory
COPY --from=build-frontend /app/dist/browser /usr/share/nginx/html
RUN mkdir -p /usr/share/nginx/html/config
# Copy backend from the correct build stage
COPY --from=build-backend /app/publish /app

View File

@@ -23,15 +23,7 @@
"polyfills": ["zone.js"],
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
"src/assets",
"src/config",
"src/favicon.ico",
{
"glob": "**/*",
"input": "public"
}
],
"assets": ["src/assets", "src/favicon.ico"],
"styles": [
"src/assets/css/styles-app-loading.scss",
"src/assets/css/styles.css",

View File

@@ -5,7 +5,7 @@
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"build": "ng build --env=prod",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"