Commit e6e84da5 authored by Banfield Wesley's avatar Banfield Wesley
Browse files

Update app.Dockerfile

parent 6e6d5609
FROM rocker/shiny:4.0.1
FROM rocker/shiny:4.0.1
# system libraries of general use
## install debian packages
RUN apt-get update -qq && apt-get -y --no-install-recommends install \
libxml2-dev \
libcairo2-dev \
libsqlite3-dev \
libmariadbd-dev \
libpq-dev \
libssh2-1-dev \
unixodbc-dev \
libcurl4-openssl-dev \
libssl-dev \
libgit2-dev \
git
# system libraries of general use
## install debian packages
RUN apt-get update -qq && apt-get -y --no-install-recommends install \
libxml2-dev \
libcairo2-dev \
libsqlite3-dev \
libmariadbd-dev \
libpq-dev \
libssh2-1-dev \
unixodbc-dev \
libcurl4-openssl-dev \
libssl-dev \
libgit2-dev \
git
## update system libraries
RUN apt-get update && \
apt-get upgrade -y && \
apt-get clean
## update system libraries
RUN apt-get update && \
apt-get upgrade -y && \
apt-get clean
# Install cntools Library
RUN R -e "install.packages(c('devtools'), repo='https://cran.r-project.org/')"
RUN R -e "devtools::install_git(url='https://gitlab.osupytheas.fr/vgodard/tcntools', repo='https://cran.r-project.org/', dependencies = TRUE)"
# Install cntools Library
RUN R -e "install.packages(c('devtools'), repo='https://cran.r-project.org/')"
RUN R -e "devtools::install_git(url='https://gitlab.osupytheas.fr/vgodard/tcntools', repo='https://cran.r-project.org/', dependencies = TRUE)"
# copy necessary files
## app folder (folder must contain App.R file)
COPY ./inst/shinyapp_sato /app
# copy necessary files
## app folder (folder must contain App.R file)
COPY ./inst/shinyapp_sato /app
#expose port
EXPOSE 3838
# run app on container start
CMD ["R", "-e", "\"shiny::runApp('/app', host = '0.0.0.0', port = 3838)\""]
\ No newline at end of file
#expose port
EXPOSE 3838
# run app on container start
CMD R -e "shiny::runApp('/app', host = '0.0.0.0', port = 3838)"
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment