-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile.ok
121 lines (82 loc) · 2.52 KB
/
Dockerfile.ok
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#
# UBUNTU 19.04
#
FROM ubuntu:19.04
MAINTAINER Gregor von Laszewski <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
#
# UPDATE THE SYSTEM
#
RUN apt-get -y update
RUN apt-get -y dist-upgrade
RUN apt-get install -y --no-install-recommends apt-utils
RUN apt-get update --fix-missing
#
# DEVELOPMENT TOOLS
#
RUN apt-get install -y graphviz
RUN apt-get install -y wget
RUN apt-get install -y curl
RUN apt-get install -y rsync
RUN apt-get install -y git-core
RUN apt-get install -y dnsutils
RUN apt-get install -y build-essential checkinstall
RUN apt-get install -y libssl-dev
RUN apt-get install -y libffi-dev
RUN apt-get install -y libreadline-gplv2-dev
RUN apt-get install -y libncursesw5-dev
RUN apt-get install -y libsqlite3-dev
RUN apt-get install -y libgdbm-dev
RUN apt-get install -y libc6-dev
RUN apt-get install -y libbz2-dev
RUN apt-get install -y libffi-dev
RUN apt-get install -y zlib1g-dev
RUN apt-get install -y git
RUN apt-get install -y lsb-core
#
# INSTALL PYTHON 3.7 FROM SOURCE
#
WORKDIR /usr/src
RUN wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz
RUN tar xzf Python-3.7.4.tgz
WORKDIR /usr/src/Python-3.7.4
RUN ./configure --enable-optimizations
RUN make altinstall
#
# INSTALL PACKAGED PYTHON 3.7
#
#RUN apt-get install -y software-properties-common
#RUN add-apt-repository ppa:ubuntu-toolchain-r/ppa
# RUN pip install --upgrade pip setuptools
#RUN apt-get autoremove
#RUN apt-get install -y python3.7
# RUN apt-get install python3-setuptools
# RUN sudo easy_install3 pip
#RUN apt-get install -y python3-pip
#RUN pip3 install --upgrade pip setuptools
RUN update-alternatives --install /usr/bin/python python /usr/local/bin/python3.7 10
RUN update-alternatives --config python
RUN update-alternatives --install /usr/bin/pip pip /usr/local/bin/pip3.7 10
RUN update-alternatives --config pip
RUN yes '' | update-alternatives --force --all
ENV PATH="/usr/local/bin:${PATH}"
RUN python3.7 --version
RUN python --version
RUN pip install -U pip
RUN pip --version
WORKDIR /tmp
#
# INSTALL PANDOC
#
RUN wget -q https://github.com/jgm/pandoc/releases/download/2.7.3/pandoc-2.7.3-1-amd64.deb
RUN dpkg -i pandoc-2.7.3-1-amd64.deb
RUN pandoc --version
RUN wget https://github.com/lierdakil/pandoc-crossref/releases/download/v0.3.4.1a/linux-pandoc_2_7_3.tar.gz
RUN tar xvf linux-pandoc_2_7_3.tar.gz
RUN mv pandoc-crossref /usr/local/bin
RUN git clone https://github.com/cyberaide/bookmanager.git
WORKDIR /tmp/bookmanager
RUN pip install -e .
WORKDIR /root
#ENTRYPOINT ["/bookmanager/bin/pull.sh"]
CMD [ "/bin/bash" ]