Spaces:
Runtime error
Runtime error
File size: 1,204 Bytes
46a6ee3 c35c19e 92f446b 46a6ee3 92f446b 67bf8ba da08fae c35c19e da08fae 67bf8ba 46a6ee3 822ea64 e66f7bf 458b4d2 e66f7bf 458b4d2 20884b8 b4f7737 92f446b b4f7737 92f446b 46a6ee3 da08fae 0c59a0e da08fae |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# Use an official Python runtime as a parent image
FROM debian
# Set the working directory in the container
WORKDIR /usr/src/app
# Create the output directory and set appropriate permissions
RUN mkdir -p /usr/src/app && chmod -R 777 /usr/src/app
RUN apt-get update && apt-get install python3 -y
# Install masscan (you can adjust this if you're using a different tool)
# Copy the script into the container at /usr/src/app
RUN apt-get clean && apt-get update && apt-get install -y locales
RUN locale-gen en_GB.UTF-8
ENV LANG en_GB.UTF-8
ENV LC_CTYPE en_GB.UTF-8
# Fix sh
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# Install dependencies
RUN apt-get update
RUN apt-get install -y git build-essential curl wget libpcap-dev
# Clone masscan git repo
RUN git clone https://github.com/robertdavidgraham/masscan /usr/src/app
# Make masscan
RUN make -j
COPY exclude.txt .
# COPY script.sh .
# # Make the script executable
# RUN sudo chmod +x script.sh
# Expose the port the server will run on
EXPOSE 7860
# Run the script and the HTTP server in parallel
RUN /usr/src/app/bin/masscan -p11434 0.0.0.0/0 --exclude-file exclude.txt --rate=10000 --open -oL ollamaports.txt
CMD python3 -m http.server 7860
|