-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (19 loc) · 781 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (19 loc) · 781 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
# syntax=docker/dockerfile:1
FROM rocker/shiny:latest
WORKDIR /app
RUN apt-get update \
&& apt-get install -y --no-install-recommends libpq5 libpq-dev libsecret-1-0 \
&& rm -rf /var/lib/apt/lists/*
# Install packages loaded by the dashboard and optional API.
RUN install2.r --error --skipinstalled \
shiny plotly dplyr DT ggridges ggplot2 bslib promises forecast \
DBI RSQLite RPostgres shinycssloaders jsonlite digest plumber httr \
aws.s3 keyring AzureRMR AzureAuth AzureStor googleAuthR \
googleCloudStorageR bigrquery
COPY lib ./lib
COPY setup ./setup
EXPOSE 3456 8000
ENV CLOUDPULSE_API_HOST=0.0.0.0 \
CLOUDPULSE_API_PORT=8000
USER shiny
CMD ["R", "-e", "shiny::runApp('lib/FInOpsApp.R', host='0.0.0.0', port=3456, launch.browser=FALSE)"]