Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Banfield Wesley
TCNtools
Commits
e6e84da5
Commit
e6e84da5
authored
Dec 15, 2020
by
Banfield Wesley
Browse files
Update app.Dockerfile
parent
6e6d5609
Changes
1
Hide whitespace changes
Inline
Side-by-side
app.Dockerfile
View file @
e6e84da5
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment