|
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 |
|
|
|
|
|
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 && \ |
|
|
|
apt-get purge --auto-remove -y wget gnupg software-properties-common && \ |
|
apt-get clean && rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
RUN curl -fsSL https://deb.nodesource.com/setup_23.x | bash - && \ |
|
apt-get install -y nodejs |
|
|
|
|
|
RUN useradd -m -u 1000 -s /bin/bash draco |
|
|
|
|
|
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 run_gotty.sh /run_gotty.sh |
|
RUN chmod 744 /run_gotty.sh |
|
|
|
EXPOSE 7806 |
|
|
|
CMD ["/bin/bash", "/run_gotty.sh"] |