goty / Dockerfile
dracoox's picture
Update Dockerfile
6343fc2 verified
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"]