Adds Dockerfile and staging configuration
This commit is contained in:
parent
8e8e141f50
commit
7d1121365e
|
@ -0,0 +1,16 @@
|
|||
FROM node:alpine AS builder
|
||||
|
||||
RUN mkdir /crc-bpmn
|
||||
WORKDIR /crc-bpmn
|
||||
|
||||
ADD package.json /crc-bpmn/
|
||||
|
||||
COPY . /crc-bpmn/
|
||||
|
||||
RUN npm install && \
|
||||
npm run build:staging
|
||||
|
||||
FROM nginx:alpine
|
||||
|
||||
COPY --from=builder /crc-bpmn/dist/* /usr/share/nginx/html/
|
||||
|
24
angular.json
24
angular.json
|
@ -54,6 +54,30 @@
|
|||
"maximumError": "5mb"
|
||||
}
|
||||
]
|
||||
},
|
||||
"staging": {
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.staging.ts"
|
||||
}
|
||||
],
|
||||
"optimization": true,
|
||||
"outputHashing": "all",
|
||||
"sourceMap": false,
|
||||
"extractCss": true,
|
||||
"namedChunks": false,
|
||||
"aot": true,
|
||||
"extractLicenses": true,
|
||||
"vendorChunk": false,
|
||||
"buildOptimizer": true,
|
||||
"budgets": [
|
||||
{
|
||||
"type": "initial",
|
||||
"maximumWarning": "2mb",
|
||||
"maximumError": "5mb"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -5,6 +5,9 @@
|
|||
"ng": "ng",
|
||||
"start": "ng serve",
|
||||
"build": "ng build",
|
||||
"build:prod": "ng build --configuration=production",
|
||||
"build:staging": "ng build --configuration=staging",
|
||||
"build:test": "ng build --configuration=test",
|
||||
"test": "ng test",
|
||||
"lint": "ng lint",
|
||||
"e2e": "./node_modules/protractor/bin/webdriver-manager update && ng e2e"
|
||||
|
|
Loading…
Reference in New Issue