File size: 1,706 Bytes
d70bd9a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
FROM buildpack-deps:22.04-curl

ENV DEBIAN_FRONTEND=noninteractive \
    TZ=Asia/Ho_Chi_Minh \
    PORT=7860 \
    HOME=/home/koga

RUN useradd -m -u 1000 koga

RUN rm -f /etc/apt/sources.list.d/*.list && \
    apt-get update && apt-get install -y --no-install-recommends \
    ansible \
    bash \
    procps \
    git \
    git-lfs \
    unzip \
    xz-utils \
    openssh-client \
    openssl \
    dnsutils \
    curl \
    sudo \
    screen \
    smbclient \
    wget \
    rsync \
    whois \
    netcat \
    nmap \
    terminator \
    tmux \
    ffmpeg \
    htop \
    vim \
    nano \
    neofetch \
    wget \
    curl \
    net-tools \
    libxi6 \
    libgconf-2-4 \
    locales \
    bzip2 \
    python3-numpy \
    libsodium-dev \
    libsodium23 \
    supervisor \
    xdotool \
    zsh \
    fontconfig \
    build-essential \
    && rm -rf /var/lib/apt/lists/*

RUN curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash -\
    && apt install nodejs \
    && npm install -g configurable-http-proxy

RUN sudo apt install -y \
    libnss3-dev \
    libgdk-pixbuf2.0-dev \
    libgtk-3-dev \
    libxss-dev \
    libssl-dev libncurses5-dev libsqlite3-dev libreadline-dev libtk8.6 libgdm-dev libdb4o-cil-dev libpcap-dev \
    && sudo apt install -y libasound2 make \
    && sudo apt install -y libnss3

RUN cd /tmp && \
    wget https://www.python.org/ftp/python/3.10.12/Python-3.10.12.tgz && \
    tar -xf Python-3.10.12.tgz && \
    cd Python-3.10.12 && \
    ./configure --enable-optimizations && \
    sudo make install
RUN rm -fr /tmp/Python-3.10.12 && \
    rm /tmp/Python-3.10.12.tgz
RUN sudo apt update && \
    sudo apt install -y python3-venv python3-pip

WORKDIR /home/koga