-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
76 lines (75 loc) · 1.42 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
FROM rocker/shiny:4.0.5
# Install system requirements for index.R as needed
RUN apt-get update && apt-get install -y \
--no-install-recommends \
git-core \
libssl-dev \
libcurl4-gnutls-dev \
libxml2-dev \
libudunits2-dev \
libgeos-dev \
libgdal-dev \
julia \
libpq-dev \
libproj-dev \
postgresql \
postgis \
curl \
slurmd \
slurmctld \
munge \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV _R_SHLIB_STRIP_=true
#COPY Rprofile.site /etc/R
RUN install2.r --error --skipinstalled \
shiny \
forecast \
jsonlite \
ggplot2 \
htmltools \
plotly \
bslib \
DBI \
ggplot2 \
glue \
grid \
gridExtra \
JuliaCall \
leaflet \
logger \
mockery \
mockr \
R6 \
raster \
Rcpp \
rpostgis \
rgdal \
sf \
shiny \
shinyBS \
shinybusy \
shinyjs \
sp \
stringr \
terra \
testthat \
configr \
uuid \
shinycssloaders \
future \
vroom
RUN julia -e 'using Pkg; \
Pkg.add("UpdateJulia"); \
using UpdateJulia; \
update_julia()'
RUN sudo -u shiny julia -e 'using Pkg; \
Pkg.add("Circuitscape")'
COPY . /srv/shiny-server/batApp
COPY shiny-server.conf /etc/shiny-server
COPY R/slurm.conf /etc/slurm-llnl/
COPY start.sh /sbin/
USER root
EXPOSE 3838
ENV SHINY_LOG_STDERR=1
CMD /sbin/start.sh