vscode / Dockerfile
proti0070's picture
Create Dockerfile
3a76824 verified
FROM kalilinux/kali-rolling
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && apt install -y \
curl \
git \
sudo \
python3 \
python3-pip \
nodejs \
npm \
wget \
build-essential
# install code-server
RUN curl -fsSL https://code-server.dev/install.sh | sh
# create user
RUN useradd -m kali && echo "kali ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
USER kali
WORKDIR /home/kali
EXPOSE 7860
CMD ["code-server","--bind-addr","0.0.0.0:7860","--auth","none"]