-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
51 lines (40 loc) · 1.6 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
48
49
50
51
# Use Python 2.7.7 image, since higher Python 2.7.x versions have
# troubles with PROTOCOL_SSLv3, see:
# <https://github.com/docker-library/python/issues/29>
FROM python:2.7.7
# Install some common prerequisites ahead of `setup.py` in order to
# profit from the docker build cache:
RUN pip install gevent==1.1b4 \
gevent-socketio==0.3.6 \
gevent-websocket==0.9.5 \
PyColorizer \
PyYaml \
msgpack-python \
flask-sso
RUN pip install redis \
requests \
celery \
packaging appdirs \
ipython==5.4
RUN pip install PyColorizer \
prettytable \
jq
RUN pip install Flask-SQLAlchemy oauth2 cryptography \
fabric argcomplete SQLAlchemy httplib2 \
idna ipaddress cffi paramiko pycparser \
Flask-OAuth termcolor urllib3 pyopenssl \
ndg-httpsclient glob2
# Add sources to `code` and work there:
WORKDIR /code
RUN curl -sSL https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 -o /usr/bin/jq && chmod +x /usr/bin/jq
RUN apt-get update
RUN curl --silent --location https://deb.nodesource.com/setup_6.x | bash -
RUN apt-get install -y nodejs
RUN npm install -g bower; echo '{ "allow_root": true }' > /root/.bowerrc
RUN echo bust
ADD . /code
EXPOSE 8000
# Install recast:
RUN cat recastcontrolcenter/.bowerrc | jq '.allow_root = true' > newbower; mv newbower recastcontrolcenter/.bowerrc
RUN cd recastcontrolcenter; bower install
RUN pip install --process-dependency-links -e.