Problem when installing and building the tool with Certifi
Your code is now installing the newest version of Ceritifi, which is using Python 3.x in 2023, but your code is using Python 2.7.x => This causes a syntax error problem when building up the tool.
Fix
Should use a stable version when installing and building the tool
My fix for this problem in Dockerfile:
Problem when installing and building the tool with Certifi
Fix
Dockerfile
:RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.9/main' >> /etc/apk/repositories RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.9/community' >> /etc/apk/repositories RUN apk update && apk add mongodb git
RUN git clone https://github.com/codingo/NoSQLMap.git /root/NoSqlMap
WORKDIR /root/NoSqlMap
RUN python setup.py install
RUN pip2 uninstall certifi -y RUN pip2 install certifi==2018.10.15
COPY entrypoint.sh /tmp/entrypoint.sh RUN chmod +x /tmp/entrypoint.sh
ENTRYPOINT ["/tmp/entrypoint.sh"]