From 78c1ec45965953be6fe3d71a70731bfcfc176e24 Mon Sep 17 00:00:00 2001 From: Mario Fink Date: Thu, 11 Feb 2021 20:11:52 +0100 Subject: [PATCH] add Dockerfile --- Dockerfile | 20 ++++++++++++++++++++ makefile | 9 +++++++++ 2 files changed, 29 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a92e16b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ + +FROM debian:bullseye-20210111 + +USER root + +RUN apt-get update && apt-get install -y \ + build-essential git \ + python3 python3-pip + +RUN g++ -v + +COPY ./ /IMCtermite/ + +# install CLI tool +RUN cd /IMCtermite && ls -lh && make install && ls -lh /usr/local/bin/imctermite + +# install Python module +# RUN cd /tdm_ripper && ls -lh && make cython-requirements && make cython-install + +CMD ["sleep","inifity"] diff --git a/makefile b/makefile index 5bffa81..55168a7 100644 --- a/makefile +++ b/makefile @@ -49,6 +49,15 @@ clean : rm -vf $(EXE) rm -vf *.o +#-----------------------------------------------------------------------------# +# Docker + +docker-build : + docker build ./ --tag imctermite:0.1 + +docker-run: + docker run -it --rm imctermite:0.1 /bin/bash + # # build CLI executable # $(EXE) : $(SRC)main.cpp $(LIB)raweat.hpp $(LIB)hexshow.hpp $(LIB)rawmerge.hpp output # $(CCC) $(OPT) $< -o $@