robertvidigal commited on
Commit
7464312
·
verified ·
1 Parent(s): 0c93d8f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -10
Dockerfile CHANGED
@@ -1,30 +1,33 @@
1
  FROM rocker/shiny:latest
2
  ENV DEBIAN_FRONTEND=noninteractive
3
 
4
- # Install system libs required to build 'systemfonts' and other R packages
5
  RUN apt-get update && apt-get install -y --no-install-recommends \
6
  build-essential \
7
  pkg-config \
 
 
 
 
 
 
 
8
  libfontconfig1-dev \
9
  libfreetype6-dev \
10
  libpng-dev \
11
  libharfbuzz-dev \
12
  libfribidi-dev \
13
- libssl-dev \
14
- libxml2-dev \
15
- libcurl4-openssl-dev \
16
- ca-certificates \
17
- git \
18
  && rm -rf /var/lib/apt/lists/*
19
 
20
- # Install remotes and the lapop package (and any other R deps)
21
  RUN R -e "install.packages('remotes', repos='https://cloud.r-project.org')"
22
- RUN R -e "remotes::install_github('lapop-central/lapop', dependencies=TRUE, build_vignettes=FALSE, upgrade='never')"
23
 
24
- # (Optional) Install any CRAN packages you need (or let packages.R handle it)
25
  RUN R -e "install.packages(c('shiny','dplyr','ggplot2','readr','ggExtra'), repos='https://cloud.r-project.org')"
26
 
27
  COPY . /srv/shiny-server/
28
  WORKDIR /srv/shiny-server/
29
  EXPOSE 7860
30
- CMD ["R", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]
 
1
  FROM rocker/shiny:latest
2
  ENV DEBIAN_FRONTEND=noninteractive
3
 
 
4
  RUN apt-get update && apt-get install -y --no-install-recommends \
5
  build-essential \
6
  pkg-config \
7
+ ca-certificates \
8
+ git \
9
+ wget \
10
+ libssl-dev \
11
+ libxml2-dev \
12
+ libcurl4-openssl-dev \
13
+ libgit2-dev \
14
  libfontconfig1-dev \
15
  libfreetype6-dev \
16
  libpng-dev \
17
  libharfbuzz-dev \
18
  libfribidi-dev \
19
+ libicu-dev \
20
+ libudunits2-dev \
 
 
 
21
  && rm -rf /var/lib/apt/lists/*
22
 
23
+ # Install remotes and then lapop
24
  RUN R -e "install.packages('remotes', repos='https://cloud.r-project.org')"
25
+ RUN R -e "remotes::install_github('lapop-central/lapop', dependencies=TRUE, force=TRUE, build_vignettes=FALSE, upgrade='never', args='--no-multiarch --no-test-load')"
26
 
27
+ # Optional CRAN packages your app needs
28
  RUN R -e "install.packages(c('shiny','dplyr','ggplot2','readr','ggExtra'), repos='https://cloud.r-project.org')"
29
 
30
  COPY . /srv/shiny-server/
31
  WORKDIR /srv/shiny-server/
32
  EXPOSE 7860
33
+ CMD [\"R\", \"-e\", \"shiny::runApp(host='0.0.0.0', port=7860)\"]