-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
33 lines (27 loc) · 1.39 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM kalilinux/kali-linux-docker
ENV DEBIAN_FRONTEND noninteractive
ENV TERM xterm-256color
# do APT update
RUN apt-get -y update && apt-get -y dist-upgrade && apt-get -y autoremove && apt-get clean
# install system essentials
RUN apt-get install build-essential curl file git openvpn bridge-utils kali-linux-nethunter net-tools seclists zsh -y
RUN apt-get install sudo -y
# create a new user
RUN adduser --quiet --disabled-password --shell /bin/bash --home /home/newuser --gecos "User" newuser
RUN echo "newuser:newpassword" | chpasswd
RUN usermod -aG sudo newuser
# switch to new user
USER newuser
WORKDIR /home/newuser
# # install and setup linuxbrew
# RUN $ sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
# RUN test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv)
# RUN test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
# RUN test -r ~/.bash_profile && echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.bash_profile
# RUN echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile
# RUN sudo mkdir -p /hilal/.linuxbrew/var/homebrew/linked
# RUN sudo chown -R $(whoami) /hilal/.linuxbrew/var/homebrew/linked
# RUN sudo mkdir -p /hilal/.linuxbrew/var/homebrew/locks
# RUN sudo chown -R $(whoami) /hilal/.linuxbrew/var/homebrew/locks
#Copy necessary files for VPN and tunneling
COPY *.ovpn enable-tunnel.sh ./