-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile.simple
30 lines (23 loc) · 1 KB
/
Dockerfile.simple
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
FROM ubuntu:12.04
NAME ferry/pydata
RUN mkdir -p /home/ferry/pydata/bokeh /home/ferry/pydata/census /home/ferry/pydata/data /home/ferry/pydata/bokeh/templates
# Install everything
RUN apt-get --yes install g++ build-essential python-dev python-pip python-scientific python-pandas
ADD ./requirements.txt /home/ferry/pydata/
RUN pip install -r /home/ferry/pydata/requirements.txt
# Add the other various scripts.
ADD ./README.md /home/ferry/pydata/
ADD ./Dockerfile /home/ferry/pydata/
ADD ./bokeh /home/ferry/pydata/bokeh/
ADD ./census /home/ferry/pydata/census/
ADD ./scripts/download.sh /home/ferry/pydata/
ADD ./scripts/startsimple.sh /home/ferry/pydata/
RUN chmod a+x /home/ferry/pydata/download.sh
RUN chmod a+x /home/ferry/pydata/startsimple.sh
# Now go ahead and download all the datasets for our demo.
RUN /home/ferry/pydata/download.sh
# Clean everything
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/*
# Default command will run our plot and start the Bokeh server.
CMD ["/home/ferry/pydata/startsimple.sh"]