-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·55 lines (44 loc) · 1.5 KB
/
Dockerfile
File metadata and controls
executable file
·55 lines (44 loc) · 1.5 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
FROM ubuntu:latest
MAINTAINER Ilya Schurov <ilya@schurov.com>
RUN apt-get -qq update
RUN ln -fs /usr/share/zoneinfo/Europe/Moscow /etc/localtime
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -y install tzdata
RUN apt-get install -qq nodejs npm
RUN apt-get install -qq git vim
RUN apt-get install -qq gcc
RUN apt-get -qq -y install curl bzip2
RUN curl -sSL https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -o /tmp/miniconda.sh
RUN bash /tmp/miniconda.sh -bfp /usr/local
RUN rm -rf /tmp/miniconda.sh
RUN conda install -y python=3
RUN conda update conda
RUN conda clean --all --yes
ENV PATH /opt/conda/bin:$PATH
RUN pip install --upgrade pip
#RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
RUN pip install beautifulsoup4 lxml
# RUN conda install numpy scipy
RUN pip install indentml yattag mako fuzzywuzzy flask beautifulsoup4 \
frozen-flask python-Levenshtein plotly
RUN pip install git+https://github.com/matplotlib/matplotlib.git
RUN pip install celluloid sympy
RUN useradd -m user
USER user
WORKDIR /home/user
RUN mkdir -p qqmbr/third-party
WORKDIR qqmbr/third-party
RUN npm install mathjax-node-page@1.4.0
WORKDIR /home/user/qqmbr
RUN mkdir -p qqmbr/assets/js
RUN cp -r third-party/node_modules/mathjax qqmbr/assets/js
COPY ./ ./
USER root
RUN chown -R user *
USER user
RUN python setup.py develop --user
ENV PATH ~/.local/bin:$PATH
RUN mkdir /home/user/thebook
WORKDIR /home/user/thebook
ENV LC_ALL='C.UTF-8'
ENTRYPOINT ["/home/user/.local/bin/qqmathbook"]