-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (26 loc) · 831 Bytes
/
Dockerfile
File metadata and controls
31 lines (26 loc) · 831 Bytes
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
FROM rocker/shiny:latest
# Install system dependencies
RUN apt-get update && apt-get install -y \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
git \
libfontconfig1-dev \
libharfbuzz-dev \
libfribidi-dev \
libfreetype6-dev \
libpng-dev \
libgdal-dev \
libtiff5-dev \
libjpeg-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /home/shiny/stopedata
COPY ./DESCRIPTION ./DESCRIPTION
RUN R -s -e "install.packages('pak', repos = sprintf('https://r-lib.github.io/p/pak/stable/%s/%s/%s', .Platform\$pkgType, R.Version()\$os, R.Version()\$arch)); pak::local_install_deps()"
COPY manifest.json ./manifest.json
COPY ./NAMESPACE ./NAMESPACE
COPY ./app.R ./app.R
COPY ./R ./R
COPY ./inst ./inst
# Run app
CMD ["R", "--quiet", "-e", "shiny::runApp('app.R', host='0.0.0.0', port=3838)"]