mukuu commited on
Commit
da08fae
·
verified ·
1 Parent(s): f76965e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -6,7 +6,9 @@ WORKDIR /usr/src/app
6
 
7
  # Create the output directory and set appropriate permissions
8
  RUN mkdir -p /usr/src/app && chmod -R 777 /usr/src/app
9
- RUN apt-get update -y && apt-get install -y --force-yes masscan
 
 
10
 
11
  # Copy the script into the container at /usr/src/app
12
  COPY exclude.txt .
@@ -18,5 +20,6 @@ RUN chmod +x script.sh
18
  # Expose the port the server will run on
19
  EXPOSE 7860
20
 
21
- # Run the script
22
- CMD ["./script.sh"]
 
 
6
 
7
  # Create the output directory and set appropriate permissions
8
  RUN mkdir -p /usr/src/app && chmod -R 777 /usr/src/app
9
+
10
+ # Install masscan (you can adjust this if you're using a different tool)
11
+ RUN apt-get update && apt-get install -y masscan
12
 
13
  # Copy the script into the container at /usr/src/app
14
  COPY exclude.txt .
 
20
  # Expose the port the server will run on
21
  EXPOSE 7860
22
 
23
+ # Run the script and the HTTP server in parallel
24
+ CMD ["bash", "-c", "./script.sh & python3 -m http.server 7860"]
25
+