| | FROM ubuntu:22.04 |
| |
|
| | ENV DEBIAN_FRONTEND=noninteractive |
| |
|
| | |
| | RUN apt update && apt upgrade -y && \ |
| | apt-get update && apt-get upgrade -y && \ |
| | apt-get install -y \ |
| | python3 python3-pip \ |
| | nodejs npm \ |
| | tmate \ |
| | openssh-client \ |
| | neofetch \ |
| | git \ |
| | curl \ |
| | procps \ |
| | ca-certificates && \ |
| | apt-get clean && rm -rf /var/lib/apt/lists/* |
| |
|
| | |
| | RUN pip3 install --no-cache-dir pytelegrambotapi |
| |
|
| | |
| | RUN mkdir -p /root/.ssh && \ |
| | ssh-keygen -t rsa -f /root/.ssh/id_rsa -N '' && \ |
| | chmod 700 /root/.ssh && chmod 600 /root/.ssh/id_rsa |
| |
|
| | |
| | RUN useradd -m -u 1000 -s /bin/bash user |
| |
|
| | |
| | ENV HOME=/home/user \ |
| | PATH=/home/user/.local/bin:$PATH |
| |
|
| | |
| | RUN mkdir -p /app && echo "Tmate Session Running..." > /app/index.html |
| | WORKDIR /app |
| |
|
| | |
| | USER user |
| |
|
| | EXPOSE 7860 |
| |
|
| | |
| | CMD python3 -m http.server 7860 & tmate -F |