Force l'environnemnt au BUILD
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user