-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile_R
80 lines (71 loc) · 1.66 KB
/
Dockerfile_R
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
77
78
79
80
FROM rocker/shiny-verse:latest
#update all packages
RUN apt-get update
#upgrade
RUN apt-get upgrade -y
#install additional packages
RUN apt-get update && apt install gpg-agent -y unixodbc apt-utils curl \
tzdata \
libudunits2-dev \
libmagick++-dev\
libsodium-dev \
graphviz \
dirmngr \
gpg-agent \
nano \
vim \
gawk \
less \
libcurl4-openssl-dev \
libxml2-dev \
libjpeg-turbo8-dev \
gdal-bin \
proj-bin \
lbzip2 \
libfftw3-dev \
libgdal-dev \
libgeos-dev \
libgsl0-dev \
libgl1-mesa-dev \
libglu1-mesa-dev \
libhdf4-alt-dev \
libhdf5-dev \
libjq-dev \
# liblwgeom-dev \
libpq-dev \
libproj-dev \
libprotobuf-dev \
python3-pip\
libnetcdf-dev \
libsqlite3-dev \
libssl-dev \
netcdf-bin \
protobuf-compiler \
sqlite3 \
tk-dev \
unixodbc-dev \
software-properties-common \
cron
# install the R dependencies
COPY install.R /tmp/
RUN R -f /tmp/install.R
RUN mkdir /utilities
RUN mkdir /utilities/dicts
RUN mkdir /utilities/csv
RUN mkdir /utilities/maps
COPY requirements.txt /utilities/
COPY utilities/* /utilities/
COPY data/cleanCSV/*.csv /utilities/csv/
COPY data/dictionaries/*.json /utilities/dicts/
COPY data/maps/*.gpkg /utilities/maps/
RUN pip3 install -r /utilities/requirements.txt
COPY start.sh /
COPY .env_db /
# RUN cd /utilities && python3 autoload.py
#copy app to image
ADD shinyapp ./shinyapp
#/srv/shiny-server/shinyapp
#RUN ls -ls /srv/shiny-server/shinyapp
# Make all app files readable
RUN chmod -R +r /srv/shiny-server/
# CMD ["R", "-e", "require(shiny); shiny::runApp('/shinyapp', host='0.0.0.0', port=3838)"]