-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
46 lines (39 loc) · 843 Bytes
/
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
FROM phusion/baseimage:focal-1.2.0
# Use baseimage-docker's init system:
CMD ["/sbin/my_init"]
RUN apt-get update && apt-get install -y \
bash \
curl \
sudo \
wget \
git \
make \
nodejs \
npm \
busybox \
build-essential \
aria2 \
ffmpeg \
unzip \
python \
python2 \
python3 \
ctorrent \
asciinema \
&& mkdir -p /home/stuff
# Set work dir:
WORKDIR /home
# Copy files:
COPY startbot.sh /home
COPY config.sh /home
COPY /stuff /home/stuff
# Run config.sh and clean up APT:
RUN sh /home/config.sh \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Install the bot:
RUN git clone https://github.com/botgram/shell-bot.git \
&& cd shell-bot \
&& npm install
RUN echo "Uploaded files:" && ls /home/stuff/
# Run bot script:
CMD bash /home/startbot.sh