dracoox commited on
Commit
05ddb14
·
verified ·
1 Parent(s): 7c30a3e

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +49 -0
Dockerfile ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:20.04
2
+
3
+ LABEL maintainer="wingnut0310 <wingnut0310@gmail.com>"
4
+
5
+ ENV LANG en_US.UTF-8
6
+ ENV LANGUAGE en_US:en
7
+ ENV GOTTY_TAG_VER v1.0.1
8
+ ARG DEBIAN_FRONTEND=noninteractive
9
+
10
+ # Update & install packages
11
+ RUN apt-get update && apt-get install -y \
12
+ curl \
13
+ wget \
14
+ gnupg \
15
+ ca-certificates \
16
+ software-properties-common \
17
+ python3 \
18
+ python3-pip \
19
+ nodejs \
20
+ npm \
21
+ neofetch \
22
+ ffmpeg \
23
+ speedtest-cli \
24
+ sudo \
25
+ iputils-ping \
26
+ lsb-release && \
27
+ # Clean up
28
+ apt-get purge --auto-remove -y wget gnupg software-properties-common && \
29
+ apt-get clean && rm -rf /var/lib/apt/lists/*
30
+
31
+ # Install latest Node.js 23
32
+ RUN curl -fsSL https://deb.nodesource.com/setup_23.x | bash - && \
33
+ apt-get install -y nodejs
34
+
35
+ # Create user 'draco' with UID and GID 1000 and home directory
36
+ RUN useradd -m -u 1000 -s /bin/bash draco
37
+
38
+ # Install gotty
39
+ RUN curl -sLk https://github.com/yudai/gotty/releases/download/${GOTTY_TAG_VER}/gotty_linux_amd64.tar.gz \
40
+ | tar xz -C /usr/local/bin && \
41
+ chmod +x /usr/local/bin/gotty
42
+
43
+ # Copy startup script
44
+ COPY run_gotty.sh /run_gotty.sh
45
+ RUN chmod 744 /run_gotty.sh
46
+
47
+ EXPOSE 7806
48
+
49
+ CMD ["/bin/bash", "/run_gotty.sh"]