Dockerfile + make install without sudo
This commit is contained in:
parent
33b5e39028
commit
4d9dff517e
17
Dockerfile
Normal file
17
Dockerfile
Normal 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"]
|
||||||
|
|
||||||
|
|
4
makefile
4
makefile
@ -26,10 +26,10 @@ $(EXE) : main.o tdm_ripper.o
|
|||||||
$(CC) $(OPT) $^ -o $@
|
$(CC) $(OPT) $^ -o $@
|
||||||
|
|
||||||
install : $(EXE)
|
install : $(EXE)
|
||||||
sudo cp $< $(INST)/
|
cp $< $(INST)/
|
||||||
|
|
||||||
uninstall : $(INST)/$(EXE)
|
uninstall : $(INST)/$(EXE)
|
||||||
sudo rm $<
|
rm $<
|
||||||
|
|
||||||
# build main.cpp object file and include git version/commit tag
|
# build main.cpp object file and include git version/commit tag
|
||||||
main.o : src/main.cpp
|
main.o : src/main.cpp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user