From 3fd3ce4cb36b8532b0db879d3f772558b4d24be7 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 5 Mar 2023 09:12:02 +0100 Subject: [PATCH] Dockerfile: Use pip dependency resolver Now that pip has a real dependency resolver, use it to install ALL pip dependencies in a single Docker layer. * https://pip.pypa.io/en/stable/topics/dependency-resolution * https://docs.docker.com/storage/storagedriver/#images-and-layers --- Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2945f20..5656a50 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,14 +11,11 @@ WORKDIR /root/hackingtool COPY . . RUN true && \ -pip3 install -r requirements.txt; - -RUN true && \ -pip3 install lolcat boxes flask requests; +pip3 install boxes flask lolcat requests -r requirements.txt; RUN true && \ echo "/root/hackingtool/" > /home/hackingtoolpath.txt; EXPOSE 1-65535 -ENTRYPOINT ["python3", "/root/hackingtool/hackingtool.py"] \ No newline at end of file +ENTRYPOINT ["python3", "/root/hackingtool/hackingtool.py"]