feat: add entry point to docker and use slim image

This commit is contained in:
Amin Yahyaabadi 2021-09-18 11:38:12 -05:00
parent 418fa80b65
commit 5458ece5b9
3 changed files with 15 additions and 5 deletions

View File

@ -1,5 +1,15 @@
#### Creating the container
FROM node:12-buster
# A tiny debian with node binary installed
FROM node:12-slim
# add setup_cpp.js
ADD "./dist/" "/"
WORKDIR "/"
RUN node ./setup_cpp.js --compiler llvm --cmake true --ninja true --ccache true --conan true
# install unzip and xz-utils for the slim image (a standard debian already has these)
RUN apt-get update -qq
RUN apt-get install -y --no-install-recommends unzip
# run installation
RUN node ./setup_cpp.js --compiler llvm --cmake true --ninja true --ccache true --conan true
ENTRYPOINT [ "/bin/sh" ]

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