forked from carver/docker-skyline
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
36 lines (25 loc) · 1.05 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
FROM debian:7.6
MAINTAINER Dieter Plaetinck <[email protected]>
# /var/dump for redis data
RUN mkdir -p /var/log/skyline /var/run/skyline /var/log/redis /var/dump/
RUN apt-get update
# python-dev is for numpy
RUN apt-get install -y python-setuptools python-scipy git python-dev
RUN easy_install pip
#Redis
RUN apt-get install -y wget gcc build-essential
RUN wget http://download.redis.io/releases/redis-2.6.16.tar.gz
RUN tar --extract --gzip --directory /opt --file redis-2.6.16.tar.gz
RUN cd /opt/redis-2.6.16 && make
ENV PATH $PATH:/opt/redis-2.6.16/src
RUN pip install --upgrade numpy
RUN pip install pandas patsy msgpack-python
RUN pip install statsmodels # must install pandas first :/
RUN git clone https://github.com/etsy/skyline.git /opt/skyline
RUN pip install -r /opt/skyline/requirements.txt
ADD skyline-start.sh /usr/bin/skyline-start.sh
RUN chmod +x /usr/bin/skyline-start.sh
ADD skyline-settings.py /opt/skyline/src/settings.py
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ENV PATH $PATH:/opt/skyline/bin
CMD ["skyline-start.sh"]