Update Dockerfile

- Use apt-get instead of apt, and install all packages at once
- Do a shallow clone. Saves bandwidth and time.
This commit is contained in:
Avneet Singh 2021-11-25 00:43:22 +05:30 committed by GitHub
parent 80fe70d706
commit 403d0a99e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,14 +1,14 @@
FROM ubuntu:latest
# Update sources and install git
RUN apt update -y && apt install git -y && apt install python3-pip -y
RUN apt-get update -y && apt-get install -y git python3-pip
#Git configuration
RUN git config --global user.name "YOUR NAME HERE" \
&& git config --global user.email "YOUR EMAIL HERE"
# Clone SETOOLKIT
RUN git clone https://github.com/trustedsec/social-engineer-toolkit.git
RUN git clone --depth=1 https://github.com/trustedsec/social-engineer-toolkit.git
# Change Working Directory
WORKDIR /social-engineer-toolkit
@ -21,4 +21,4 @@ RUN python3 setup.py
ENTRYPOINT [ "./setoolkit" ]