-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
31 lines (24 loc) · 1.15 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
FROM ubuntu:17.10
LABEL maintainer="[email protected]"
ARG BUILD_DIR
# Install third-party dependencies
RUN apt-get -qq update
RUN apt-get install -y python3.6 python3-pip eukleides libxml2-utils gettext \
texlive-latex-base texlive-luatex texlive-latex-recommended texlive-xetex \
texlive-pstricks texlive-font-utils texlive-latex-extra texlive-base \
texlive-science texlive-pictures texlive-generic-recommended \
texlive-fonts-recommended texlive-fonts-extra locales
RUN apt-get clean
## Generate locales (required for the tests)
RUN locale-gen en_US.UTF-8 && locale-gen fr_FR.UTF-8
## Create directories for required files
RUN mkdir -p $BUILD_DIR && mkdir -p /root/.mathmaker/outfiles/
## Add files required for the build
COPY requirements.txt setup.py CONTRIBUTORS.rst CHANGELOG.rst LICENSE MANIFEST.in README README.rst pytest.ini ${BUILD_DIR}/
COPY mathmaker ${BUILD_DIR}/mathmaker/
COPY tests ${BUILD_DIR}/tests/
## Run pip
RUN pip3 install --force -r ${BUILD_DIR}/requirements.txt \
--extra-index-url https://mirror.picosecond.org/pypi/simple && \
pip3 install pytest coverage && \
cd ${BUILD_DIR} && python3.6 setup.py install