-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
58 lines (41 loc) · 1.39 KB
/
Dockerfile
File metadata and controls
58 lines (41 loc) · 1.39 KB
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
51
52
53
54
55
56
57
58
FROM phusion/baseimage:bionic-1.0.0
# Do not change the Docker container. This bionic container eats less juice than Ubuntu 20.04
CMD ["/sbin/my_init"]
# Basic modules to make the container more usable. You can add more btw...
RUN apt-get update && apt-get install -y \
bash \
sudo \
curl \
git \
make \
busybox \
wget \
build-essential \
nodejs \
npm \
&& mkdir -p /home/files
# This is the default working directory. Don't change it if you don't know what you're doing.
WORKDIR /home
# Make Your Custom Directory with sudo
RUN mkdir -p /home/.config/qBittorrent
RUN mkdir -p /home/.config/rclone/
# This is you default dowload directory for qbit...
RUN mkdir -p /home/dl
COPY bot.sh /home
COPY Setup.sh /home
# This will copy your extra files which you need inside the container.
COPY /files /home/files
# This will copy your rclone config.
RUN cp /home/files/rclone.conf /home/.config/rclone/
# ngrok will forward localhost to http or https
RUN npm install -g ngrok
# This will run Setup.sh and excute all your command with sudo.
RUN sh /home/Setup.sh \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# This will install the shell bot aka the core.. of your bot.
RUN git clone https://github.com/botgram/shell-bot.git \
&& cd shell-bot \
&& npm install
RUN echo "All Operations Completed Successfully!"
# Start the bot
CMD bash /home/bot.sh