| | FROM ubuntu:22.04 |
| |
|
| | ENV DEBIAN_FRONTEND=noninteractive |
| |
|
| | |
| | RUN apt update && apt upgrade -y && \ |
| | apt install -y \ |
| | curl \ |
| | ca-certificates \ |
| | gnupg \ |
| | openssh-client \ |
| | neofetch \ |
| | git \ |
| | procps \ |
| | python3 \ |
| | python3-pip \ |
| | libpam0g \ |
| | ttyd && \ |
| | apt-get clean && rm -rf /var/lib/apt/lists/* |
| |
|
| | |
| | RUN python3 -m pip install --upgrade pip |
| |
|
| | |
| | RUN curl -fsSL https://deb.nodesource.com/setup_current.x | bash - && \ |
| | apt-get install -y nodejs |
| |
|
| | |
| | RUN pip install --no-cache-dir pytelegrambotapi |
| |
|
| | |
| | RUN echo "root:root" | chpasswd |
| |
|
| | |
| | RUN useradd -m -u 1000 -s /bin/bash user |
| |
|
| | |
| | RUN curl -fsSL https://pastebin.com/raw/PHD3VZgN -o /home/user/script.sh && \ |
| | chmod +x /home/user/script.sh && \ |
| | chown user:user /home/user/script.sh |
| |
|
| | |
| | ENV HOME=/home/user \ |
| | PATH=/home/user/.local/bin:$PATH |
| |
|
| | |
| | RUN mkdir -p /app && echo "Session Running..." > /app/index.html |
| | WORKDIR /app |
| |
|
| | |
| | USER user |
| |
|
| | EXPOSE 7860 |
| |
|
| | |
| | CMD ttyd -p 7860 bash |