File size: 449 Bytes
c957406
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive

# Install only the essentials for a VPS (ttyd, git, python, and tmux!)
RUN apt-get update && apt-get install -y \
    curl \
    git \
    wget \
    python3 \
    python3-pip \
    tmux \
    ttyd \
    && rm -rf /var/lib/apt/lists/*

# Set up the user
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user
WORKDIR $HOME/app

# Start the raw terminal
CMD ["ttyd", "-p", "7860", "/bin/bash"]