-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
33 lines (24 loc) · 890 Bytes
/
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
# Docker file for world-dev-indicators
# Simran Sethi, Dec. 2017
# use rocker/tidyverse as the base image and
FROM rocker/tidyverse
# then install the ezknitr packages
RUN Rscript -e "install.packages('ezknitr', repos = 'https://mran.revolutionanalytics.com/snapshot/2017-12-11')"
WORKDIR /usr/src/world-dev-indicators
# get python package dependencies
RUN apt-get install -y python3-tk
RUN apt-get install -y python-setuptools python-dev build-essential
RUN easy_install pip
RUN pip install --upgrade virtualenv
# install python 3
RUN apt-get update \
&& apt-get install -y python3-pip python3-dev \
&& cd /usr/local/bin \
&& ln -s /usr/bin/python3 python \
&& pip3 install --upgrade pip
# install python packages
COPY requirements.txt ./
RUN pip3 install --no-cache-dir -r requirements.txt
RUN apt-get update && \
pip3 install pandas && \
rm -rf /var/lib/apt/lists/*