-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaoa-r-base
39 lines (30 loc) · 1.56 KB
/
aoa-r-base
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
# Copyright (c) Teradata.
# Distributed under the terms of the Modified BSD License.
FROM rocker/r-base:4.0.3
RUN apt-get update -qq && apt-get install -y wget build-essential checkinstall \
libreadline-dev libncursesw5-dev libssl-dev \
libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev
RUN wget https://www.python.org/ftp/python/3.7.9/Python-3.7.9.tgz && tar -xzf Python-3.7.9.tgz && \
cd Python-3.7.9 && ./configure --enable-optimizations && make install && cd .. && rm -fr ./Python-3.7.9
RUN apt-get update -qq && apt-get install -y \
git-core \
libssl-dev \
libcurl4-gnutls-dev \
zlib1g-dev \
software-properties-common
RUN add-apt-repository 'deb http://ftp.au.debian.org/debian/ stretch main contrib non-free' && apt-get update && \
apt-get install -y --no-install-recommends openjdk-8-jre-headless ca-certificates-java
RUN apt-get update && apt-get install -y \
python3-pip \
libssl-dev \
libcurl4-openssl-dev \
libsodium-dev \
libgit2-dev \
libxml2-dev && \
apt-get clean
RUN pip3 install --no-cache-dir s3cmd==2.0.2 aoa==6.1.2
RUN Rscript -e "install.packages('remotes')" && \
Rscript -e "remotes::install_version('dbplyr', version='2.1.1', repos='https://cloud.r-project.org')" && \
Rscript -e "install.packages('tdplyr', version='17.00.00.02', repos=c('https://r-repo.teradata.com','https://cloud.r-project.org'))"
RUN Rscript -e "install.packages(c('r2pmml', 'devtools', 'jsonlite', 'plumber', 'urltools', 'gbm', 'uuid', 'httr', 'argparse', 'caret', 'e1071', 'R.utils'))"
CMD ["R"]