From b011d26aa1c8f21203f0d51ed15e728ea2a46200 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Sat, 18 Sep 2021 11:43:56 -0500 Subject: [PATCH] feat: add a normal debian docker image --- building/docker/linux.dockerfile | 8 ++------ building/docker/linux_slim.dockerfile | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 building/docker/linux_slim.dockerfile diff --git a/building/docker/linux.dockerfile b/building/docker/linux.dockerfile index 30737bde..e19d1f28 100644 --- a/building/docker/linux.dockerfile +++ b/building/docker/linux.dockerfile @@ -1,14 +1,10 @@ -# A tiny debian with node binary installed -FROM node:12-slim +# debian with node installed +FROM node:16 # add setup_cpp.js ADD "./dist/" "/" WORKDIR "/" -# 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 diff --git a/building/docker/linux_slim.dockerfile b/building/docker/linux_slim.dockerfile new file mode 100644 index 00000000..2ed2c26d --- /dev/null +++ b/building/docker/linux_slim.dockerfile @@ -0,0 +1,15 @@ +# a tiny debian with node installed +FROM node:16-slim + +# add setup_cpp.js +ADD "./dist/" "/" +WORKDIR "/" + +# install unzip for the slim image (a standard debian already has it) +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" ] \ No newline at end of file