Skip to content
Snippets Groups Projects
Commit 2df53cde authored by rhenck's avatar rhenck
Browse files

Add docker specific production environment file

And use it for the prod build.
parent 995f31f4
No related branches found
No related tags found
No related merge requests found
...@@ -73,6 +73,29 @@ ...@@ -73,6 +73,29 @@
"vendorChunk": false, "vendorChunk": false,
"buildOptimizer": true "buildOptimizer": true
}, },
"production-docker": {
"budgets": [
{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}
],
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.docker.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true
},
"build": { "build": {
"budgets": [ "budgets": [
{ {
......
...@@ -20,7 +20,7 @@ COPY . /app ...@@ -20,7 +20,7 @@ COPY . /app
RUN ng test --watch=false RUN ng test --watch=false
RUN ng build --output-path=dist RUN ng build -c production-docker --output-path=dist
EXPOSE 4200 EXPOSE 4200
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment