mirror of https://github.com/aminya/setup-cpp
feat: add entry point to docker and use slim image
This commit is contained in:
parent
418fa80b65
commit
5458ece5b9
|
@ -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" ]
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue