-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
47 lines (33 loc) · 1.09 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM continuumio/anaconda3:latest
RUN apt-get update -y
RUN python3 -m ensurepip
# Set up apt-get
RUN apt-get install -y apt-utils gnupg curl libgl1-mesa-glx gcc redis-server supervisor
RUN apt-get install -y freetype*
ADD . /app
WORKDIR /app
ARG PORT
ARG REDIS_URL
ENV PORT $PORT
ENV REDIS_URL $REDIS_URL
# Install nodejs
RUN curl -sL https://deb.nodesource.com/setup_9.x | bash
RUN apt-get install -yqq nodejs
RUN apt-get clean -y
# Install sciris
RUN git clone https://github.com/sciris/sciris.git
RUN cd sciris && python setup.py develop
RUN git clone https://github.com/sciris/scirisweb.git
RUN cd scirisweb && python setup.py develop
# Install mpld3
RUN git clone https://github.com/sciris/mpld3.git
RUN cd mpld3 && python3 setup.py submodule && python3 setup.py install
# Install Optima Nutrition
RUN python3 setup.py develop
RUN python3 -m pip install --upgrade https://github.com/celery/celery/tarball/master
RUN python3 -m pip install --upgrade redis
# Install app
WORKDIR client
RUN python3 install_client.py
RUN python3 build_client.py
CMD /etc/init.d/redis-server start && supervisord