-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
160 lines (141 loc) · 3.35 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
# We're using Debian Slim Buster image
FROM python:3.8.5-slim-buster
ENV PIP_NO_CACHE_DIR 1
RUN sed -i.bak 's/us-west-2\.ec2\.//' /etc/apt/sources.list
# Installing Required Packages
RUN apt update && apt upgrade -y && \
apt install --no-install-recommends -y \
debian-keyring \
debian-archive-keyring \
bash \# We're using Debian Slim Buster image
FROM python:3.8.5-slim-buster
ENV PIP_NO_CACHE_DIR 1
RUN sed -i.bak 's/us-west-2\.ec2\.//' /etc/apt/sources.list
# Installing Required Packages
RUN apt update && apt upgrade -y && \
apt install --no-install-recommends -y \
debian-keyring \
debian-archive-keyring \
bash \
bzip2 \
curl \
figlet \
git \
util-linux \
libffi-dev \
libjpeg-dev \
libjpeg62-turbo-dev \
libwebp-dev \
linux-headers-amd64 \
musl-dev \
musl \
neofetch \
php-pgsql \
python3-lxml \
postgresql \
postgresql-client \
python3-psycopg2 \
libpq-dev \
libcurl4-openssl-dev \
libxml2-dev \
libxslt1-dev \
python3-pip \
python3-requests \
python3-sqlalchemy \
python3-tz \
python3-aiohttp \
openssl \
pv \
jq \
wget \
python3 \
python3-dev \
libreadline-dev \
libyaml-dev \
gcc \
sqlite3 \
libsqlite3-dev \
sudo \
zlib1g \
ffmpeg \
libssl-dev \
libgconf-2-4 \
libxi6 \
xvfb \
unzip \
libopus0 \
libopus-dev \
&& rm -rf /var/lib/apt/lists /var/cache/apt/archives /tmp
# Pypi package Repo upgrade
RUN pip3 install --upgrade pip setuptools
# Copy Python Requirements to /root/LaylaRobot
RUN git clone -b shiken https://github.com/AnimeKaizoku/LaylaRobot /root/LaylaRobot
WORKDIR /root/LaylaRobot
#Copy config file to /root/LaylaRobot/LaylaRobot
COPY ./LaylaRobot/sample_config.py ./LaylaRobot/config.py* /root/LaylaRobot/LaylaRobot/
ENV PATH="/home/bot/bin:$PATH"
# Install requirements
RUN pip3 install -U -r requirements.txt
# Starting Worker
CMD ["python3","-m","LaylaRobot"]
bzip2 \
curl \
figlet \
git \
util-linux \
libffi-dev \
libjpeg-dev \
libjpeg62-turbo-dev \
libwebp-dev \
linux-headers-amd64 \
musl-dev \
musl \
neofetch \
php-pgsql \
python3-lxml \
postgresql \
postgresql-client \
python3-psycopg2 \
libpq-dev \
libcurl4-openssl-dev \
libxml2-dev \
libxslt1-dev \
python3-pip \
python3-requests \
python3-sqlalchemy \
python3-tz \
python3-aiohttp \
openssl \
pv \
jq \
wget \
python3 \
python3-dev \
libreadline-dev \
libyaml-dev \
gcc \
sqlite3 \
libsqlite3-dev \
sudo \
zlib1g \
ffmpeg \
libssl-dev \
libgconf-2-4 \
libxi6 \
xvfb \
unzip \
libopus0 \
libopus-dev \
&& rm -rf /var/lib/apt/lists /var/cache/apt/archives /tmp
# Pypi package Repo upgrade
RUN pip3 install --upgrade pip setuptools
# Copy Python Requirements to /root/SaitamaRobot
RUN git clone -b shiken https://github.com/AnimeKaizoku/SaitamaRobot /root/SaitamaRobot
WORKDIR /root/SaitamaRobot
#Copy config file to /root/SaitamaRobot/SaitamaRobot
COPY ./SaitamaRobot/sample_config.py ./SaitamaRobot/config.py* /root/SaitamaRobot/SaitamaRobot/
ENV PATH="/home/bot/bin:$PATH"
# Install requirements
RUN pip3 install -U -r requirements.txt
# Starting Worker
CMD ["python3","-m","SaitamaRobot"]