Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
60 lines (51 loc) · 2.2 KB
/
Copy pathDockerfile
File metadata and controls
60 lines (51 loc) · 2.2 KB
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
# General Config
FROM ubuntu:20.04
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y locales
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen
ENV PATH "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV TZ US/Central
RUN ln -snf /usr/share/zoneinfo/$CONTAINER_TIMEZONE /etc/localtime && echo $CONTAINER_TIMEZONE > /etc/timezone
# Update Environment
RUN apt-get -y update
RUN apt-get -y upgrade
RUN apt-get -y dist-upgrade
RUN apt-get -y autoremove
# Install python
RUN apt-get install -y python3-pip
# Install other apt packages
RUN apt-get -y install zip
RUN apt-get -y install git
RUN apt-get -y install graphviz
RUN apt-get -y install ffmpeg
RUN apt-get -y install libspatialindex-c6
RUN apt-get -y install tzdata
# Update git settings
RUN git config --global core.filemode false
# Install general packages
RUN pip3 install jupyter pandas numpy==1.20 requests matplotlib beautifulsoup4 statistics recordclass haversine sklearn
RUN pip3 install gitpython pylint graphviz bs4 lxml flask html5lib geopandas shapely descartes click netaddr
RUN pip3 install pysal
# Install pytorch, see pytorch.org for updated command
#RUN pip3 install torch==1.4.0+cpu torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
RUN pip3 install selenium==4.1.2
RUN apt-get update
RUN apt-get -y install software-properties-common
RUN add-apt-repository ppa:saiarcot895/chromium-beta
RUN apt-get update
RUN apt-get -y install wget chromium-browser chromium-chromedriver
RUN wget https://chromedriver.storage.googleapis.com/97.0.4692.20/chromedriver_linux64.zip
RUN unzip chromedriver_linux64.zip
RUN mv chromedriver /usr/bin/chromium.chromedriver
RUN rm chromedriver_linux64.zip
# RUN apt-get update &&\
# DEBIAN_FRONTEND=noninteractive\
# apt-get install -y fuse snapd snap-confine squashfuse sudo init &&\
# apt-get clean &&\
# dpkg-divert --local --rename --add /sbin/udevadm &&\
# ln -s /bin/true /sbin/udevadm
#RUN systemctl enable snapd
#RUN apt -y install chromium-browser
RUN pip3 install torch==1.4.0+cpu torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html