rajistics commited on
Commit
82bd538
1 Parent(s): 7bbf580

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -15
Dockerfile CHANGED
@@ -1,25 +1,16 @@
1
- FROM openanalytics/r-ver:4.1.3
 
2
 
3
- # system libraries of general use
4
- RUN apt-get update && apt-get install --no-install-recommends -y \
5
- pandoc \
6
- pandoc-citeproc \
7
- libcurl4-gnutls-dev \
8
- libcairo2-dev \
9
- libxt-dev \
10
- libssl-dev \
11
- libssh2-1-dev \
12
- libssl1.1 \
13
- libmpfr-dev \
14
- && rm -rf /var/lib/apt/lists/*
15
-
16
- # basic shiny functionality
17
  RUN R -q -e "install.packages(c('shiny', 'rmarkdown'))"
18
 
19
  # copy the app to the image
20
  WORKDIR /shinyapp
21
  COPY --link Rprofile.site /usr/local/lib/R/etc/
 
 
22
  COPY --link app.R /shinyapp/app.R
23
 
 
24
  EXPOSE 7860
25
  CMD ["R", "-q", "-e", "shiny::runApp('/shinyapp')"]
 
1
+ #get standard R container
2
+ FROM rocker/r-ver
3
 
4
+ # basic packages for shiny functionality
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  RUN R -q -e "install.packages(c('shiny', 'rmarkdown'))"
6
 
7
  # copy the app to the image
8
  WORKDIR /shinyapp
9
  COPY --link Rprofile.site /usr/local/lib/R/etc/
10
+
11
+ # copy R profile for configuring port
12
  COPY --link app.R /shinyapp/app.R
13
 
14
+ #Expose port of HF space
15
  EXPOSE 7860
16
  CMD ["R", "-q", "-e", "shiny::runApp('/shinyapp')"]