2021-09-19 00:43:56 +08:00
|
|
|
# debian with node installed
|
|
|
|
FROM node:16
|
2021-09-19 00:38:12 +08:00
|
|
|
|
|
|
|
# add setup_cpp.js
|
2021-09-18 20:06:59 +08:00
|
|
|
ADD "./dist/" "/"
|
|
|
|
WORKDIR "/"
|
2021-09-19 00:38:12 +08:00
|
|
|
|
|
|
|
# run installation
|
2022-01-20 03:15:21 +08:00
|
|
|
RUN node ./setup_cpp.js --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
|
2021-09-19 00:38:12 +08:00
|
|
|
|
2022-01-18 10:51:14 +08:00
|
|
|
# reload the environment
|
|
|
|
CMD source ~/.profile
|
|
|
|
|
2021-09-30 08:56:28 +08:00
|
|
|
ENTRYPOINT [ "/bin/sh" ]
|