eienmojiki commited on
Commit
e6e826e
1 Parent(s): 9b2494b

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +92 -0
Dockerfile ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM buildpack-deps:22.04-curl
2
+
3
+ ENV DEBIAN_FRONTEND=noninteractive \
4
+ TZ=Asia/Ho_Chi_Minh \
5
+ PORT=7860 \
6
+ HOME=/home/koga \
7
+ PATH=/home/koga/.local/bin:$PATH
8
+
9
+ RUN useradd -m -u 1000 koga
10
+
11
+ RUN chown -R koga: $HOME
12
+
13
+ RUN rm -f /etc/apt/sources.list.d/*.list && \
14
+ apt-get update && apt-get install -y --no-install-recommends \
15
+ ansible \
16
+ bash \
17
+ procps \
18
+ git \
19
+ git-lfs \
20
+ unzip \
21
+ xz-utils \
22
+ openssh-client \
23
+ openssl \
24
+ dnsutils \
25
+ curl \
26
+ sudo \
27
+ screen \
28
+ smbclient \
29
+ wget \
30
+ rsync \
31
+ whois \
32
+ netcat \
33
+ nmap \
34
+ terminator \
35
+ tmux \
36
+ ffmpeg \
37
+ htop \
38
+ vim \
39
+ nano \
40
+ neofetch \
41
+ wget \
42
+ curl \
43
+ net-tools \
44
+ libxi6 \
45
+ libgconf-2-4 \
46
+ locales \
47
+ bzip2 \
48
+ python3-numpy \
49
+ libsodium-dev \
50
+ libsodium23 \
51
+ supervisor \
52
+ xdotool \
53
+ zsh \
54
+ fontconfig \
55
+ build-essential \
56
+ && rm -rf /var/lib/apt/lists/*
57
+
58
+ RUN curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash -\
59
+ && apt install nodejs \
60
+ && npm install -g configurable-http-proxy
61
+
62
+ RUN sudo apt install -y \
63
+ libnss3-dev \
64
+ libgdk-pixbuf2.0-dev \
65
+ libgtk-3-dev \
66
+ libxss-dev \
67
+ libssl-dev libncurses5-dev libsqlite3-dev libreadline-dev libtk8.6 libgdm-dev libdb4o-cil-dev libpcap-dev \
68
+ && sudo apt install -y libasound2 make \
69
+ && sudo apt install -y libnss3
70
+
71
+ RUN cd /tmp && \
72
+ wget https://www.python.org/ftp/python/3.10.12/Python-3.10.12.tgz && \
73
+ tar -xf Python-3.10.12.tgz && \
74
+ cd Python-3.10.12 && \
75
+ ./configure --enable-optimizations && \
76
+ sudo make install
77
+ RUN rm -fr /tmp/Python-3.10.12 && \
78
+ rm /tmp/Python-3.10.12.tgz
79
+ RUN sudo apt update && \
80
+ sudo apt install -y python3-venv python3-pip
81
+
82
+ USER koga
83
+
84
+ RUN git clone https://github.com/kogakisaki/koga-2048.git
85
+
86
+ WORKDIR $HOME/koga-2048
87
+
88
+ RUN npm install
89
+
90
+ EXPOSE $PORT
91
+
92
+ CMD ["npm", "run", "start"]