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