2021-09-19 00:38:12 +08:00
|
|
|
# A tiny debian with node binary installed
|
|
|
|
FROM node:12-slim
|
|
|
|
|
|
|
|
# add setup_cpp.js
|
2021-09-18 20:06:59 +08:00
|
|
|
ADD "./dist/" "/"
|
|
|
|
WORKDIR "/"
|
2021-09-19 00:38:12 +08:00
|
|
|
|
|
|
|
# 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" ]
|