-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
51 lines (41 loc) · 1.25 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
FROM ghcr.io/rocker-org/shiny:4.3
RUN apt-get update && apt-get install -y --no-install-recommends \
sudo \
libcurl4-gnutls-dev \
libcairo2-dev \
libxt-dev \
libssl-dev \
libssh2-1-dev \
libgdal-dev \
libproj-dev \
libgeos-dev \
libudunits2-dev \
netcdf-bin \
&& rm -rf /var/lib/apt/lists/*
RUN R -e "install.packages(c('shinyjs'))"
RUN R -e "install.packages(c('data.table'))"
RUN R -e "install.packages(c('units'))"
RUN R -e "install.packages(c('sf'))"
RUN R -e "install.packages(c('dplyr'))"
RUN R -e "install.packages(c('tidyr'))"
RUN R -e "install.packages(c('leaflet'))"
RUN R -e "install.packages(c('leaflet.extras2'))"
RUN R -e "install.packages(c('arrow'))"
RUN R -e "install.packages(c('sfarrow'))"
RUN R -e "install.packages(c('shinyWidgets'))"
RUN R -e "install.packages(c('fontawesome'))"
RUN rm -rf /srv/shiny-server
WORKDIR /srv/shiny-server
COPY apps/ /apps
COPY assets/ www
COPY config.sh /config.sh
RUN chmod +x /config.sh
ARG BUILD_DATE
ARG REVISION
ARG VERSION
LABEL created $BUILD_DATE
LABEL version $VERSION
LABEL revision $REVISION
LABEL vendor "Democracia en Red & Reflejar"
LABEL title "Pesticidas introducidos silenciosamente"
CMD ["/bin/bash", "-c", "/config.sh && /usr/bin/shiny-server"]