prod build fix
This commit is contained in:
@@ -3,9 +3,9 @@ WORKDIR /app
|
||||
COPY frontend/package*.json /app/
|
||||
RUN npm ci || npm install
|
||||
COPY frontend /app
|
||||
RUN npm run build
|
||||
RUN npm run build:prod
|
||||
|
||||
FROM nginx:1.29-alpine
|
||||
FROM nginx:mainline
|
||||
COPY frontend/nginx/default.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=build /app/dist/routeros-backup-manager-next-ui/browser /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
|
||||
@@ -14,24 +14,64 @@
|
||||
"outputPath": "dist/routeros-backup-manager-next-ui",
|
||||
"index": "src/index.html",
|
||||
"browser": "src/main.ts",
|
||||
"polyfills": ["zone.js"],
|
||||
"polyfills": [
|
||||
"zone.js"
|
||||
],
|
||||
"tsConfig": "tsconfig.app.json",
|
||||
"assets": ["src/favicon.ico", "src/assets"],
|
||||
"assets": [
|
||||
"src/favicon.ico",
|
||||
"src/assets"
|
||||
],
|
||||
"styles": [
|
||||
"node_modules/primeicons/primeicons.css",
|
||||
"node_modules/primeng/resources/themes/lara-light-blue/theme.css",
|
||||
"node_modules/primeng/resources/primeng.min.css",
|
||||
"src/styles.css"
|
||||
]
|
||||
}
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"optimization": true,
|
||||
"outputHashing": "all",
|
||||
"sourceMap": false,
|
||||
"extractLicenses": true,
|
||||
"budgets": [
|
||||
{
|
||||
"type": "initial",
|
||||
"maximumWarning": "1mb",
|
||||
"maximumError": "2mb"
|
||||
},
|
||||
{
|
||||
"type": "anyComponentStyle",
|
||||
"maximumWarning": "10kb",
|
||||
"maximumError": "20kb"
|
||||
}
|
||||
]
|
||||
},
|
||||
"development": {
|
||||
"optimization": false,
|
||||
"sourceMap": true,
|
||||
"extractLicenses": false
|
||||
}
|
||||
},
|
||||
"defaultConfiguration": "production"
|
||||
},
|
||||
"serve": {
|
||||
"builder": "@angular-devkit/build-angular:dev-server",
|
||||
"options": {
|
||||
"buildTarget": "routeros-backup-manager-next-ui:build"
|
||||
}
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"buildTarget": "routeros-backup-manager-next-ui:build:production"
|
||||
},
|
||||
"development": {
|
||||
"buildTarget": "routeros-backup-manager-next-ui:build:development"
|
||||
}
|
||||
},
|
||||
"defaultConfiguration": "development"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,9 @@
|
||||
"start": "ng serve --host 127.0.0.1 --port 4200 --proxy-config proxy.conf.json",
|
||||
"start:lan": "ng serve --host 0.0.0.0 --port 4200 --proxy-config proxy.conf.json",
|
||||
"build": "ng build",
|
||||
"test": "ng test"
|
||||
"test": "ng test",
|
||||
"build:prod": "ng build --configuration production",
|
||||
"build:dev": "ng build --configuration development"
|
||||
},
|
||||
"dependencies": {
|
||||
"@angular/animations": "^17.3.0",
|
||||
|
||||
Reference in New Issue
Block a user