Dockerfile + make install without sudo

This commit is contained in:
Mario Fink 2021-01-16 15:52:55 +01:00
parent 33b5e39028
commit 4d9dff517e
2 changed files with 19 additions and 2 deletions

17
Dockerfile Normal file
View File

@ -0,0 +1,17 @@
FROM debian:bullseye-20210111
USER root
RUN apt-get update && apt-get install -y \
build-essential git
RUN g++ -v
COPY ./ /tdm_ripper/
RUN cd /tdm_ripper && ls -lh && make install && ls -lh /usr/local/bin/tdmripper
CMD ["sleep","inifity"]

View File

@ -26,10 +26,10 @@ $(EXE) : main.o tdm_ripper.o
$(CC) $(OPT) $^ -o $@
install : $(EXE)
sudo cp $< $(INST)/
cp $< $(INST)/
uninstall : $(INST)/$(EXE)
sudo rm $<
rm $<
# build main.cpp object file and include git version/commit tag
main.o : src/main.cpp