forked from civisanalytics/datascience-r
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
24 lines (20 loc) · 797 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
FROM rocker/verse:3.4.2
MAINTAINER [email protected]
RUN DEBIAN_FRONTEND=noninteractive apt-get update -y --no-install-recommends && \
apt-get install -y --no-install-recommends \
curl \
wget && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# tuck the python client here just in case
COPY ./requirements-python.txt /requirements-python.txt
RUN curl -s https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
python get-pip.py && \
pip install -r requirements-python.txt && \
rm -rf ~/.cache/pip && \
rm -f get-pip.py
RUN Rscript -e "devtools::install_github('civisanalytics/civis-r', ref = 'v1.0.2', upgrade_dependencies = FALSE);"
ENV VERSION=2.1.0 \
VERSION_MAJOR=2 \
VERSION_MINOR=1 \
VERSION_MICRO=0