forked from legenhand/Nana-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
49 lines (41 loc) · 842 Bytes
/
Dockerfile
File metadata and controls
49 lines (41 loc) · 842 Bytes
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
FROM archlinux
ENV PIP_NO_CACHE_DIR 1
WORKDIR /app/
# Installing Required Packages
RUN pacman -Syu --noconfirm \
curl \
git \
libffi \
libjpeg-turbo \
libjpeg6-turbo \
libwebp \
python-lxml \
postgresql \
python-psycopg2 \
libpqxx \
libxml2 \
libxslt \
python-pip \
python-sqlalchemy \
openssl \
wget \
python \
readline \
libyaml \
gcc \
zlib \
ffmpeg \
libxi \
unzip \
libopusenc \
&& rm -rf /var/cache/pacman/pkg /tmp
# copy the dependencies file to the working directory
COPY requirements.txt .
# install dependencies
RUN pip3 install -r requirements.txt
# copy the content of the local src directory to the working directory
COPY . .
# remove readme to avoid ban
RUN rm README.md
# Starting Worker
CMD ["python3","-m","nana"]