You've already forked hackingtool
mirror of
https://github.com/Z4nzu/hackingtool.git
synced 2025-08-10 05:59:19 +02:00
Optimized Dockerfile for layer cache and moved all the installations for cache not to rerun the same layer for every code change for Docker container.
This commit is contained in:
23
Dockerfile
23
Dockerfile
@@ -1,21 +1,12 @@
|
||||
FROM kalilinux/kali-rolling
|
||||
|
||||
FROM kalilinux/kali-rolling:latest
|
||||
RUN apt-get update && \
|
||||
apt-get install -y git python3-pip figlet sudo;
|
||||
|
||||
#Install packages dependencies
|
||||
RUN true && \
|
||||
apt-get install -y boxes php curl xdotool wget;
|
||||
apt-get install -y git python3-pip figlet sudo && \
|
||||
apt-get install -y boxes php curl xdotool wget
|
||||
|
||||
WORKDIR /root/hackingtool
|
||||
COPY requirements.txt ./
|
||||
RUN pip3 install --no-cache-dir boxes flask lolcat requests -r requirements.txt
|
||||
COPY . .
|
||||
|
||||
RUN true && \
|
||||
pip3 install boxes flask lolcat requests -r requirements.txt;
|
||||
|
||||
RUN true && \
|
||||
echo "/root/hackingtool/" > /home/hackingtoolpath.txt;
|
||||
|
||||
RUN true && echo "/root/hackingtool/" > /home/hackingtoolpath.txt;
|
||||
EXPOSE 1-65535
|
||||
|
||||
ENTRYPOINT ["python3", "/root/hackingtool/hackingtool.py"]
|
||||
ENTRYPOINT ["python3", "/root/hackingtool/hackingtool.py"]
|
Reference in New Issue
Block a user