SSRFmap/Dockerfile

20 lines
451 B
Docker
Raw Normal View History

2024-06-08 18:48:06 +00:00
FROM python:3.12.4-alpine
2019-12-03 11:08:43 +00:00
2024-06-08 18:48:06 +00:00
WORKDIR /usr/src/app
COPY . /usr/src/app
2019-12-03 11:08:43 +00:00
2024-06-10 12:56:13 +00:00
RUN apk update
# Install curl with outdated libcurl
RUN apk add --update build-base cmake c-ares-dev
RUN cp examples/curl-7.71.0.tar.gz /tmp
RUN tar -xvf /tmp/curl-7.71.0.tar.gz -C /tmp/
RUN cd /tmp/curl-7.71.0 && ./configure --enable-ares && make && make install
2019-12-03 11:08:43 +00:00
2024-06-08 18:48:06 +00:00
# Install requirements
RUN pip install -r requirements.txt
# Downgrade privileges
USER 1000
ENTRYPOINT ["python3"]