forked from fgolemo/mcdp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmcdp.Dockerfile
More file actions
136 lines (104 loc) · 2.86 KB
/
mcdp.Dockerfile
File metadata and controls
136 lines (104 loc) · 2.86 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
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
FROM ubuntu:16.04
MAINTAINER Andrea Censi
ENV refreshed_ON=20180609
RUN apt-get update
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get install -y dialog apt-utils
# needed for adding repository
RUN apt-get install -y \
software-properties-common \
gnupg \
curl \
apt-transport-https
# Git LFS
RUN add-apt-repository -y ppa:git-core/ppa
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
RUN apt-get update
RUN apt-get install -y \
git \
git-extras \
ssh \
pdftk \
bibtex2html \
libxml2-dev \
libxslt1-dev \
libffi6 \
libffi-dev \
libxml2-dev \
libxslt1-dev \
pdftk \
bibtex2html \
build-essential \
graphviz \
idle \
virtualenv \
python-pmw \
python-imaging \
python-yaml \
python-dev \
python-setproctitle \
python-psutil \
python-pip \
python-tk \
python-scipy \
python-frozendict \
python-termcolor \
python-setproctitle \
python-psutil\
python-mysqldb\
byobu \
atop \
htop \
imagemagick \
graphviz \
ghostscript \
git-lfs \
ntpdate \
libatlas-base-dev \
vim\
apt-file\
iftop\
node-less\
libcurl3\
libgif7
# python-matplotlib \
# python-numpy \
# clang
# Python deps
COPY requirements.txt /requirements.txt
RUN pip install -r /requirements.txt
RUN wget https://www.princexml.com/download/prince_11.3-1_ubuntu16.04_amd64.deb && \
dpkg -i prince_11.3-1_ubuntu16.04_amd64.deb
RUN rm prince_11.3-1_ubuntu16.04_amd64.deb
# RUN add-apt-repository ppa:mc3man/xerus-media
# RUN apt-get update
# RUN apt-get install -y mplayer mencoder ffmpeg
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash
RUN apt-get update
RUN apt-get install -y nodejs
RUN mkdir /project
WORKDIR /project
RUN npm install MathJax-node@0.3.1 jsdom@9.3 less@3.0.4
RUN apt-get remove python-bs4 python-bs4-doc
RUN mkdir /project/mcdp
COPY Makefile.cython /project/mcdp
COPY setup.py /project/mcdp
COPY src /project/mcdp/src
COPY misc /project/mcdp/misc
RUN virtualenv --system-site-packages deploy
# This is done now in mcdp_deps
# COPY requirements.txt /project/mcdp/requirements.txt
# RUN . deploy/bin/activate && pip install -r mcdp/requirements.txt
# Delete files generated from outside
RUN find mcdp/src -name '*.so' -delete
RUN find mcdp/src -name '*.c' -delete
RUN . deploy/bin/activate && cd mcdp && make -f Makefile.cython -j3
RUN . deploy/bin/activate && cd mcdp && make -f Makefile.cython delete-python-files
# --no-deps should avoid downloading dependencies
RUN . deploy/bin/activate && cd mcdp && python setup.py develop --no-deps
RUN cp -R /project/mcdp/misc/fonts /usr/share/fonts/my-fonts
RUN fc-cache -f -v
RUN apt-get clean
ENV DISABLE_CONTRACTS=1
RUN . deploy/bin/activate && mcdp-render-manual --help
COPY entrypoint.sh /project/entrypoint.sh