forked from fgolemo/mcdp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1_mcdp_install.Dockerfile
More file actions
36 lines (24 loc) · 1.01 KB
/
1_mcdp_install.Dockerfile
File metadata and controls
36 lines (24 loc) · 1.01 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
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
RUN chmod +x /project/mcdp_server.sh
RUN chmod 0777 /project