This repository was archived by the owner on Jan 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
88 lines (78 loc) · 1.95 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
FROM rocker/geospatial:4.2.2@sha256:474b268335c7d66066b2d248b877161543d1e2c0d500b57521999ce28d7311ba
# Enabled to non-ASCII font (especially Japanese) embed in PDF
RUN set -x && \
apt-get update && \
apt-get install -y --no-install-recommends \
cmake \
curl \
fonts-ipaexfont \
libmagick++-dev \
libsecret-1-dev \
libsodium-dev \
libssl-dev \
libzmq3-dev \
imagemagick \
libpython3.5 \
python3-dev \
python3-setuptools \
python3-pip \
unar && \
apt-get install -y \
r-cran-bit64 \
r-cran-data.table \
r-cran-ggforce \
r-cran-lwgeom \
r-cran-reprex \
r-cran-sf \
r-cran-usethis && \
apt-get clean && \
: "日本語のロケールを有効にする" && \
localedef -f UTF-8 -i ja_JP ja_JP.UTF-8 && \
rm -rf /var/lib/apt/lists/*
RUN set -x && \
: "rust environment" && \
curl https://sh.rustup.rs -sSf | sh -s -- -y
RUN set -x && \
~/.cargo/bin/cargo install gifski
ARG GITHUB_PAT
RUN set -x && \
echo "GITHUB_PAT=$GITHUB_PAT" >> /usr/local/lib/R/etc/Renviron
RUN set -x && \
: "CRAN経由でのパッケージのインストール" && \
install2.r --error --ncpus -1 --repos 'https://cran.microsoft.com/snapshot/2021-07-18/' \
assertr \
bench \
classInt \
colormap \
config \
conflicted \
cowplot \
cptcity \
drake \
dtplyr \
ensurer \
furrr \
gganimate \
here \
hrbrthemes \
naniar \
patchwork \
progressr \
rdrop2 \
reticulate \
rnaturalearth \
roxygen2md \
scico \
targets \
tictoc \
whoami && \
rm -rf /tmp/downloaded_packages/ /tmp/*.rds
RUN set -x && \
: "GitHub経由でのパッケージのインストール" && \
installGithub.r \
'ropenscilabs/rnaturalearthhires' && \
rm -rf /tmp/downloaded_packages/ /tmp/*.rds
USER rstudio
RUN set -x && \
Rscript -e 'reticulate::install_miniconda(path = "/home/rstudio/.local/share/r-miniconda")'
USER root