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
62772110
Commit
62772110
authored
Dec 10, 2020
by
Banfield Wesley
Browse files
Add Dockerfile
parent
3cd38800
Changes
1
Hide whitespace changes
Inline
Side-by-side
app.Dockerfile
0 → 100644
View file @
62772110
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
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