-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
35 lines (34 loc) · 1.09 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
FROM python:buster
COPY . .
RUN apt-get update && \
# uvloop
apt-get install -y -qq libuv1-dev \
# lxml
libxml2-dev libxslt1-dev \
# cairosvg
libcairo2-dev \
# Pillow
libjpeg62-turbo-dev zlib1g-dev libfreetype6-dev liblcms2-dev libtiff5-dev tk8.6-dev tcl8.6-dev libwebp-dev libharfbuzz-dev libfribidi-dev libgif-dev \
# wand
imagemagick \
# h5py
libhdf5-dev \
# debugging
gdb \
# apt is so noisy
> /dev/null
# always install numpy separately
RUN python3 -m pip install -U git+https://github.com/numpy/numpy@master#egg=numpy --retries 30
# install minor deps
RUN python3 -m pip install -U --upgrade-strategy eager "discord.py>=1.5.0" "asyncpg" "pillow" "matplotlib" -q --retries 30
# remove caches
RUN rm -rf /root/.cache/pip/* && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
find /usr/local -depth \
\( \
\( -type d -a \( -name test -o -name tests \) \) \
-o \
\( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \
\) -exec rm -rf '{}' +
CMD ["python3", "Referee.py"]