shiny-test / Dockerfile
rajistics's picture
Update Dockerfile
55f9499
raw
history blame contribute delete
400 Bytes
#get standard R container
FROM rocker/r-ver
# basic packages for shiny functionality
RUN R -q -e "install.packages(c('shiny', 'rmarkdown'))"
# copy the app to the image
WORKDIR /shinyapp
COPY --link app.R /shinyapp/app.R
# copy R profile for configuring port
COPY --link Rprofile.site /usr/local/lib/R/etc/
#Expose port of HF space
EXPOSE 7860
CMD ["R", "-q", "-e", "shiny::runApp('/shinyapp')"]