Update Dockerfile

#1
by XciD HF staff - opened
Files changed (1) hide show
  1. Dockerfile +3 -8
Dockerfile CHANGED
@@ -10,9 +10,6 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
10
  libssl-dev \
11
  libssh2-1-dev \
12
  libssl1.1 \
13
- && rm -rf /var/lib/apt/lists/*
14
-
15
- RUN apt-get update && apt-get install -y \
16
  libmpfr-dev \
17
  && rm -rf /var/lib/apt/lists/*
18
 
@@ -20,11 +17,9 @@ RUN apt-get update && apt-get install -y \
20
  RUN R -q -e "install.packages(c('shiny', 'rmarkdown'))"
21
 
22
  # copy the app to the image
23
- RUN mkdir /shinyapp
24
- COPY app.R /shinyapp/app.R
25
-
26
- COPY Rprofile.site /usr/local/lib/R/etc/
27
 
28
  EXPOSE 7860
29
-
30
  CMD ["R", "-q", "-e", "shiny::runApp('/shinyapp')"]
 
10
  libssl-dev \
11
  libssh2-1-dev \
12
  libssl1.1 \
 
 
 
13
  libmpfr-dev \
14
  && rm -rf /var/lib/apt/lists/*
15
 
 
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')"]