feat: add docker file

This commit is contained in:
Amin Yahyaabadi 2021-09-18 07:06:59 -05:00
parent a778f9bfce
commit f96f8ff178
6 changed files with 10 additions and 3 deletions

View File

@ -0,0 +1,5 @@
#### Creating the container
FROM node:12-buster
ADD "./dist/" "/"
WORKDIR "/"
RUN node ./setup_cpp.js --compiler llvm --cmake true --ninja true --ccache true --conan true

2
dist/setup_cpp.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -17,7 +17,9 @@
"test.tsc": "tsc --noEmit",
"test.unit": "jest --runInBand",
"test": "run-p test.format test.lint test.tsc test.unit",
"pack.exe": "shx rm -rf ./dist/tsconfig.tsbuildinfo && node ./building/pack-exe.js"
"pack.exe": "shx rm -rf ./dist/tsconfig.tsbuildinfo && node ./building/scripts/pack-exe.js",
"build.docker": "pnpm build && docker build -f ./building/docker/node.docker -t setup_cpp .",
"start.docker": "docker run -t setup_cpp ."
},
"engines": {
"node": ">=12.x"