Add build tooling for Docker
This commit is contained in:
parent
349b8a9e7d
commit
1b1c1f5f5e
@ -1,3 +1,3 @@
|
||||
FROM node:14
|
||||
FROM joseluisq/static-web-server:2
|
||||
|
||||
RUN npm install -g pnpm
|
||||
COPY ./www /public/i
|
||||
|
@ -10,6 +10,9 @@
|
||||
"test": "ng test",
|
||||
"lint": "ng lint",
|
||||
"e2e": "ng e2e",
|
||||
"build:prod": "rm -f ./node_modules/ngx-monaco-editor/lib/monaco.d.ts && sed -i '1d' ./node_modules/ngx-monaco-editor/lib/types.d.ts && ionic build --prod && ngsw-config ./www/ ./ngsw-config.json /i && echo -n $(uuidgen) | tee ./www/version.html",
|
||||
"docker:build": "docker build -t ${DOCKER_REGISTRY}/noded/frontend .",
|
||||
"docker:push": "docker push ${DOCKER_REGISTRY}/noded/frontend",
|
||||
"postinstall": "sed -i '/^declare let MonacoEnvironment/d' node_modules/ngx-monaco-editor/lib/monaco.d.ts"
|
||||
},
|
||||
"private": true,
|
||||
|
Loading…
Reference in New Issue
Block a user