File size: 493 Bytes
3a76824
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
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"]