-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
72 lines (56 loc) · 1.92 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
FROM debian:buster-slim
MAINTAINER Fasih <[email protected]>
RUN echo 'deb http://ftp.de.debian.org/debian sid main' >> /etc/apt/sources.list
RUN apt-get update
RUN apt-get -o APT::Immediate-Configure=0 --no-install-recommends -y install \
python3.9 \
python3.9-dev \
python3.9-distutils \
build-essential \
libssl-dev \
libffi-dev \
libxml2-dev \
libxslt1-dev \
zlib1g-dev \
libpq-dev \
libjpeg-dev \
ffmpeg \
bash \
wget \
wkhtmltopdf \
xauth \
xvfb
RUN printf '#!/bin/bash\nxvfb-run -a --server-args="-screen 0, 1024x768x24" /usr/bin/wkhtmltopdf -q $*' > /usr/bin/wkhtmltopdf.sh
RUN chmod a+x /usr/bin/wkhtmltopdf.sh
RUN ln -s /usr/bin/wkhtmltopdf.sh /usr/local/bin/wkhtmltopdf
RUN wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py
RUN python3.9 get-pip.py
RUN rm get-pip.py
RUN cd /usr/local/bin \
&& rm -f easy_install \
&& rm -f pip \
&& rm -f pydoc \
&& rm -f python
RUN cd /usr/local/bin \
&& ln -s easy_install-3.9 easy_install \
&& ln -s pip3.9 pip \
&& ln -s /usr/bin/pydoc3.9 pydoc \
&& ln -s /usr/bin/python3.9 python
RUN apt-get -y autoremove
RUN apt-get -y autoclean
RUN echo 'alias python=python3.9' >> ~/.bashrc
RUN pip install \
numpy \
scipy \
scikit-learn \
lxml \
uWSGI \
pandas \
pandas_schema \
pdfkit \
pydub \
Pillow \
praat-parselmouth \
psycopg2 \
ffmpeg-python
CMD set PYTHONIOENCODING=utf-8