feat: add a normal debian docker image

This commit is contained in:
Amin Yahyaabadi 2021-09-18 11:43:56 -05:00
parent 5458ece5b9
commit b011d26aa1
2 changed files with 17 additions and 6 deletions

View File

@ -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

View File

@ -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" ]