diff --git a/Dockerfile b/Dockerfile index 9b5b154..301083f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,7 @@ RUN rm -rf /var/cache/apk/* WORKDIR /root RUN git clone https://github.com/thewhiteh4t/finalrecon.git WORKDIR /root/finalrecon/ +RUN pip3 install wheel RUN pip3 install --upgrade pip RUN pip3 install -r requirements.txt -ENTRYPOINT ["python3", "finalrecon.py"] \ No newline at end of file +ENTRYPOINT ["python3", "finalrecon.py"] diff --git a/finalrecon.py b/finalrecon.py index 0e26d01..e4a3264 100644 --- a/finalrecon.py +++ b/finalrecon.py @@ -21,8 +21,9 @@ pass else: pass +path_to_script = os.path.dirname(os.path.realpath(__file__)) -with open('requirements.txt', 'r') as rqr: +with open(path_to_script + '/requirements.txt', 'r') as rqr: pkg_list = rqr.read().strip().split('\n') print('\n' + G + '[+]' + C + ' Checking Dependencies...' + W + '\n')