forked from ddonco/redfin-scraper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
60 lines (55 loc) · 1.2 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
FROM python:3.9
RUN apt-get update && apt-get install -y \
wget \
build-essential \
cmake \
gcc g++ \
git \
pkg-config \
python3-dev \
python3-numpy \
libavcodec-dev libavformat-dev libswscale-dev \
libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev \
libgtk2.0-dev \
libgtk-3-dev \
libpng-dev \
libjpeg-dev \
libtiff-dev \
ghostscript
RUN \
mkdir -p ~/opencv-source cd ~/opencv-source && \
git clone https://github.com/opencv/opencv.git && cd opencv && \
mkdir build && cd build && \
cmake ../ && \
make -j4 && \
make install && \
cd ~ && rm -rf opencv-source
RUN \
useradd user \
&& mkdir /home/user \
&& chown user:user /home/user \
&& pip3 install \
ipython \
scipy \
scikit-learn \
pandas \
matplotlib \
xgboost \
lightgbm \
catboost \
seaborn \
jupyter \
jupyterlab \
beautifulsoup4 \
lxml \
fake-useragent \
camelot-py \
tabula-py \
opencv-python \
tqdm \
psycopg2-binary \
pretty_html_table \
&& pip install \
python-dotenv
EXPOSE 8888
WORKDIR /home/user