Add build tooling for Docker

This commit is contained in:
Garrett Mills 2022-06-25 21:41:15 -05:00
parent 349b8a9e7d
commit 1b1c1f5f5e
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,3 @@
FROM node:14
FROM joseluisq/static-web-server:2
RUN npm install -g pnpm
COPY ./www /public/i

View File

@ -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,