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

Add Dockerfile

parent 3cd38800
FROM rocker/shiny:latest
# 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
## update system libraries
RUN apt-get update && \
apt-get upgrade -y && \
apt-get clean
# copy necessary files
## app folder (folder must contain App.R file)
COPY /tcntools/inst/shinyapp_sato ./app
#expose port
EXPOSE 8080
# Install cntools Library
RUN R -e "install.packages(c('devtools'))"
RUN R -e "devtools::install_git(url='https://gitlab.osupytheas.fr/vgodard/tcntools')"
# run app on container start
CMD ["R", "-e", "shiny::runApp('/app', host = '0.0.0.0', port = 8080)"]
\ No newline at end of file
Markdown is supported
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