File size: 1,151 Bytes
05ddb14
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6343fc2
05ddb14
 
 
 
 
 
 
 
 
 
 
 
 
 
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
FROM ubuntu:20.04

LABEL maintainer="wingnut0310 <wingnut0310@gmail.com>"

ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV GOTTY_TAG_VER v1.0.1
ARG DEBIAN_FRONTEND=noninteractive

# Update & install packages
RUN apt-get update && apt-get install -y \
    curl \
    wget \
    gnupg \
    ca-certificates \
    software-properties-common \
    python3 \
    python3-pip \
    nodejs \
    npm \
    neofetch \
    ffmpeg \
    speedtest-cli \
    sudo \
    iputils-ping \
    lsb-release && \
    # Clean up
    apt-get purge --auto-remove -y wget gnupg software-properties-common && \
    apt-get clean && rm -rf /var/lib/apt/lists/*

# Install latest Node.js 23
RUN curl -fsSL https://deb.nodesource.com/setup_23.x | bash - && \
    apt-get install -y nodejs

# Create user 'draco'
RUN useradd -m -u 1000 -s /bin/bash draco

# Install gotty
RUN curl -sLk https://github.com/yudai/gotty/releases/download/${GOTTY_TAG_VER}/gotty_linux_amd64.tar.gz \
    | tar xz -C /usr/local/bin && \
    chmod +x /usr/local/bin/gotty

# Copy startup script
COPY run_gotty.sh /run_gotty.sh
RUN chmod 744 /run_gotty.sh

EXPOSE 7806

CMD ["/bin/bash", "/run_gotty.sh"]