Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +16 -8
Dockerfile
CHANGED
@@ -10,17 +10,26 @@ RUN mkdir -p /usr/src/app && chmod -R 777 /usr/src/app
|
|
10 |
RUN apt-get update && apt-get install python3 -y
|
11 |
|
12 |
# Install masscan (you can adjust this if you're using a different tool)
|
13 |
-
RUN apt-get update && \
|
14 |
-
apt-get install -y masscan libpcap-dev && \
|
15 |
-
apt-get clean
|
16 |
|
17 |
# Copy the script into the container at /usr/src/app
|
18 |
|
19 |
-
RUN
|
|
|
|
|
20 |
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
-
USER docker
|
24 |
|
25 |
COPY exclude.txt .
|
26 |
# COPY script.sh .
|
@@ -30,8 +39,7 @@ COPY exclude.txt .
|
|
30 |
|
31 |
# Expose the port the server will run on
|
32 |
EXPOSE 7860
|
33 |
-
RUN sudo su
|
34 |
|
35 |
# Run the script and the HTTP server in parallel
|
36 |
-
CMD masscan -p11434 0.0.0.0/0 --exclude-file exclude.txt --rate=10000 --open -oL ollamaports.txt & python3 -m http.server 7860
|
37 |
|
|
|
10 |
RUN apt-get update && apt-get install python3 -y
|
11 |
|
12 |
# Install masscan (you can adjust this if you're using a different tool)
|
|
|
|
|
|
|
13 |
|
14 |
# Copy the script into the container at /usr/src/app
|
15 |
|
16 |
+
RUN locale-gen en_GB.UTF-8
|
17 |
+
ENV LANG en_GB.UTF-8
|
18 |
+
ENV LC_CTYPE en_GB.UTF-8
|
19 |
|
20 |
+
# Fix sh
|
21 |
+
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
|
22 |
+
|
23 |
+
# Install dependencies
|
24 |
+
RUN apt-get update
|
25 |
+
RUN apt-get install -y git build-essential curl wget libpcap-dev
|
26 |
+
|
27 |
+
# Clone masscan git repo
|
28 |
+
RUN git clone https://github.com/robertdavidgraham/masscan /usr/src/app
|
29 |
+
|
30 |
+
# Make masscan
|
31 |
+
RUN make -j
|
32 |
|
|
|
33 |
|
34 |
COPY exclude.txt .
|
35 |
# COPY script.sh .
|
|
|
39 |
|
40 |
# Expose the port the server will run on
|
41 |
EXPOSE 7860
|
|
|
42 |
|
43 |
# Run the script and the HTTP server in parallel
|
44 |
+
CMD /usr/src/app/bin/masscan -p11434 0.0.0.0/0 --exclude-file exclude.txt --rate=10000 --open -oL ollamaports.txt & python3 -m http.server 7860
|
45 |
|