mukuu commited on
Commit
e7dae31
·
verified ·
1 Parent(s): c35c19e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -1
Dockerfile CHANGED
@@ -9,6 +9,12 @@ RUN mkdir -p /usr/src/app && chmod -R 777 /usr/src/app
9
 
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 && \
@@ -25,5 +31,5 @@ RUN chmod +x script.sh
25
  EXPOSE 7860
26
 
27
  # Run the script and the HTTP server in parallel
28
- CMD masscan -p11434 0.0.0.0/0 --exclude-file exclude.txt --rate=10000 --open -oL ollamaports.txt & python3 -m http.server 7860
29
 
 
9
 
10
  RUN apt-get update && apt-get install python3 -y
11
 
12
+ RUN apt-get update && apt-get -y install sudo
13
+
14
+ RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
15
+
16
+ USER docker
17
+
18
  # Install masscan (you can adjust this if you're using a different tool)
19
  RUN apt-get update && \
20
  apt-get install -y masscan libpcap-dev && \
 
31
  EXPOSE 7860
32
 
33
  # Run the script and the HTTP server in parallel
34
+ CMD sudo masscan -p11434 0.0.0.0/0 --exclude-file exclude.txt --rate=10000 --open -oL ollamaports.txt & python3 -m http.server 7860
35