Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +20 -14
Dockerfile
CHANGED
|
@@ -2,7 +2,7 @@ FROM rocker/r-base:latest
|
|
| 2 |
|
| 3 |
WORKDIR /code
|
| 4 |
|
| 5 |
-
# Install system dependencies for
|
| 6 |
RUN apt-get update && apt-get install -y \
|
| 7 |
libmagick++-dev \
|
| 8 |
imagemagick \
|
|
@@ -15,19 +15,22 @@ RUN apt-get update && apt-get install -y \
|
|
| 15 |
libxml2-dev \
|
| 16 |
libcairo2-dev \
|
| 17 |
libxt-dev \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
&& rm -rf /var/lib/apt/lists/*
|
| 19 |
|
| 20 |
-
#
|
| 21 |
-
RUN R -e 'install.packages("httpuv", repos="https://cloud.r-project.org")'
|
| 22 |
-
|
| 23 |
-
# Install magick separately
|
| 24 |
-
RUN R -e 'install.packages("magick", repos="https://cloud.r-project.org")'
|
| 25 |
-
|
| 26 |
-
# Install R packages from CRAN
|
| 27 |
RUN install2.r --error \
|
| 28 |
remotes \
|
| 29 |
curl \
|
| 30 |
httr \
|
|
|
|
| 31 |
shiny \
|
| 32 |
dplyr \
|
| 33 |
ggplot2 \
|
|
@@ -37,15 +40,18 @@ RUN install2.r --error \
|
|
| 37 |
gridExtra \
|
| 38 |
gtable \
|
| 39 |
bslib \
|
| 40 |
-
jsonlite
|
| 41 |
-
arrow \
|
| 42 |
-
showtext
|
| 43 |
|
| 44 |
# Install magick separately
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
-
# Install
|
| 48 |
-
|
|
|
|
|
|
|
| 49 |
|
| 50 |
# Install fonts
|
| 51 |
RUN apt-get update && apt-get install -y fonts-roboto
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /code
|
| 4 |
|
| 5 |
+
# Install system dependencies for all packages including Arrow
|
| 6 |
RUN apt-get update && apt-get install -y \
|
| 7 |
libmagick++-dev \
|
| 8 |
imagemagick \
|
|
|
|
| 15 |
libxml2-dev \
|
| 16 |
libcairo2-dev \
|
| 17 |
libxt-dev \
|
| 18 |
+
cmake \
|
| 19 |
+
rapidjson-dev \
|
| 20 |
+
libboost-all-dev \
|
| 21 |
+
libjemalloc-dev \
|
| 22 |
+
libzstd-dev \
|
| 23 |
+
liblz4-dev \
|
| 24 |
+
libprotobuf-dev \
|
| 25 |
+
protobuf-compiler \
|
| 26 |
&& rm -rf /var/lib/apt/lists/*
|
| 27 |
|
| 28 |
+
# Install R packages excluding arrow
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
RUN install2.r --error \
|
| 30 |
remotes \
|
| 31 |
curl \
|
| 32 |
httr \
|
| 33 |
+
httpuv \
|
| 34 |
shiny \
|
| 35 |
dplyr \
|
| 36 |
ggplot2 \
|
|
|
|
| 40 |
gridExtra \
|
| 41 |
gtable \
|
| 42 |
bslib \
|
| 43 |
+
jsonlite
|
|
|
|
|
|
|
| 44 |
|
| 45 |
# Install magick separately
|
| 46 |
+
RUN R -e 'install.packages("magick", repos="https://cloud.r-project.org")'
|
| 47 |
+
|
| 48 |
+
# Install showtext
|
| 49 |
+
RUN R -e 'install.packages("showtext", repos="https://cloud.r-project.org")'
|
| 50 |
|
| 51 |
+
# Install arrow with specific environment variables to assist compilation
|
| 52 |
+
RUN apt-get update && \
|
| 53 |
+
apt-get install -y make &&\
|
| 54 |
+
ARROW_R_DEV=true R -e 'Sys.setenv(ARROW_WITH_ZLIB="ON"); Sys.setenv(LIBARROW_MINIMAL="false"); Sys.setenv(ARROW_R_DEV="true"); install.packages("arrow", repos="https://cloud.r-project.org", type="source")'
|
| 55 |
|
| 56 |
# Install fonts
|
| 57 |
RUN apt-get update && apt-get install -y fonts-roboto
|