forked from Tokisaki-mitsuha/MINING-DOCKER
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
52 lines (44 loc) · 1 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
51
52
FROM phusion/baseimage:bionic-1.0.0
# Use baseimage-docker's init system:
CMD ["/sbin/my_init"]
# Install dependencies:
RUN apt-get update && apt-get install -y \
bash \
curl \
sudo \
wget \
git \
make \
busybox \
build-essential \
nodejs \
npm \
screen \
neofetch \
ca-certificates \
libcurl4 \
libjansson4 \
libgomp1 \
libnuma-dev \
&& mkdir -p /home/stuff
# Set work dir:
WORKDIR /home
# Copy files:
COPY startbot.sh /home
COPY worker2.sh /homea
COPY worker3.sh /home
COPY worker4.sh /home
COPY /stuff /home/stuff
# Run config.sh and clean up APT:
RUN 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 export http_proxy=socks5://72.221.172.203:4145
CMD bash /home/startbot.sh
CMD bash /home/worker2.sh
CMD bash /home/worker3.sh
CMD bash /home/worker4.sh