Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +7 -6
Dockerfile
CHANGED
@@ -9,18 +9,19 @@ 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 |
-
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 && \
|
21 |
apt-get clean
|
22 |
|
23 |
# Copy the script into the container at /usr/src/app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
COPY exclude.txt .
|
25 |
COPY script.sh .
|
26 |
|
|
|
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 && \
|
15 |
apt-get clean
|
16 |
|
17 |
# Copy the script into the container at /usr/src/app
|
18 |
+
|
19 |
+
RUN apt-get update && apt-get -y install sudo
|
20 |
+
|
21 |
+
RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
|
22 |
+
|
23 |
+
USER docker
|
24 |
+
|
25 |
COPY exclude.txt .
|
26 |
COPY script.sh .
|
27 |
|