File tree Expand file tree Collapse file tree 1 file changed +65
-0
lines changed
Expand file tree Collapse file tree 1 file changed +65
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM rocker/ml-gpu
2+ RUN userdel nobody
3+ RUN groupadd --gid 99 nobody
4+ RUN useradd nobody --uid 99 --home /home/nobody/ --create-home --groups nobody --gid nobody --shell /bin/bash
5+ RUN echo "nobody ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
6+
7+ ENV \
8+
9+ # Change the locale
10+ LANG=fr_FR.UTF-8
11+
12+
13+ RUN \
14+ # Add Shiny support
15+ export ADD=shiny \
16+ && bash /etc/cont-init.d/add \
17+
18+ # Install system librairies
19+ && apt-get update \
20+ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends apt-utils software-properties-common \
21+ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
22+ openssh-client \
23+ libpng++-dev \
24+ libudunits2-dev \
25+ libgdal-dev \
26+ curl \
27+ gnupg2 \
28+ unixodbc \
29+ unixodbc-dev \
30+ odbc-postgresql \
31+ libsqliteodbc \
32+ alien \
33+ libsodium-dev \
34+ libsecret-1-dev \
35+ libarchive-dev \
36+ libglpk-dev \
37+ && apt-get clean \
38+ && rm -rf /var/lib/apt/lists/* \
39+ && wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | apt-key add - \
40+ && add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ \
41+ && sudo apt update -y \
42+ && apt install -y adoptopenjdk-8-hotspot \
43+
44+ # Handle localization
45+ && cp /usr/share/zoneinfo/Europe/Paris /etc/localtime \
46+ && sed -i -e 's/# fr_FR.UTF-8 UTF-8/fr_FR.UTF-8 UTF-8/' /etc/locale.gen \
47+ && dpkg-reconfigure --frontend=noninteractive locales \
48+ && update-locale LANG=fr_FR.UTF-8
49+
50+
51+ RUN \
52+
53+ R -e "update.packages(ask = 'no')" \
54+ && install2.r --error \
55+ RPostgreSQL \
56+ RSQLite \
57+ odbc \
58+ keyring \
59+ aws.s3 \
60+ Rglpk \
61+ paws \
62+ SparkR
63+
64+
65+ VOLUME ["/home" ]
You can’t perform that action at this time.
0 commit comments