-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
50 lines (44 loc) · 1.02 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FROM debian:stretch-slim
ENV USR user
ENV HOME /home/$USR
RUN groupadd -g 1000 -r $USR && \
useradd -u 1000 -d $HOME -m -r -g $USR $USR
RUN apt update -y &&\
apt install -y \
cowsay\
coreutils\
openssl\
git\
gcc\
libreadline-dev\
libssh-dev\
fortune\
fortunes\
fortune-mod\
make\
liblua5.3-dev\
lua5.3\
libexpat1-dev\
libcurl3\
libcurl3-gnutls\
libcurl4-openssl-dev\
luarocks
RUN luarocks install telegram-bot-lua \
&& luarocks install dkjson\
&& luarocks install feedparser\
&& luarocks install html-entities\
&& luarocks install lbase64\
&& luarocks install lpeg\
&& luarocks install luacrypto\
&& luarocks install luafilesystem\
&& luarocks install luaossl\
&& luarocks install luasec\
&& luarocks install luasocket\
&& luarocks install multipart-post\
&& luarocks install redis-lua\
&& luarocks install serpent\
&& luarocks install uuid
COPY . $HOME
WORKDIR $HOME
RUN chown -R $USR:$USR .
USER $USR